difit 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,221 @@
1
+ (function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))o(g);new MutationObserver(g=>{for(const h of g)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function f(g){const h={};return g.integrity&&(h.integrity=g.integrity),g.referrerPolicy&&(h.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?h.credentials="include":g.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(g){if(g.ep)return;g.ep=!0;const h=f(g);fetch(g.href,h)}})();function dg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var As={exports:{}},Ga={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ud;function ub(){if(Ud)return Ga;Ud=1;var r=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(o,g,h){var v=null;if(h!==void 0&&(v=""+h),g.key!==void 0&&(v=""+g.key),"key"in g){h={};for(var T in g)T!=="key"&&(h[T]=g[T])}else h=g;return g=h.ref,{$$typeof:r,type:o,key:v,ref:g!==void 0?g:null,props:h}}return Ga.Fragment=u,Ga.jsx=f,Ga.jsxs=f,Ga}var Bd;function sb(){return Bd||(Bd=1,As.exports=ub()),As.exports}var s=sb(),Ts={exports:{}},ye={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Hd;function ob(){if(Hd)return ye;Hd=1;var r=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),b=Symbol.iterator;function k(m){return m===null||typeof m!="object"?null:(m=b&&m[b]||m["@@iterator"],typeof m=="function"?m:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,A={};function N(m,U,$){this.props=m,this.context=U,this.refs=A,this.updater=$||q}N.prototype.isReactComponent={},N.prototype.setState=function(m,U){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,U,"setState")},N.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function j(){}j.prototype=N.prototype;function _(m,U,$){this.props=m,this.context=U,this.refs=A,this.updater=$||q}var H=_.prototype=new j;H.constructor=_,x(H,N.prototype),H.isPureReactComponent=!0;var z=Array.isArray,X={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function te(m,U,$,I,ne,ge){return $=ge.ref,{$$typeof:r,type:m,key:U,ref:$!==void 0?$:null,props:ge}}function se(m,U){return te(m.type,U,void 0,void 0,void 0,m.props)}function be(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function ce(m){var U={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function($){return U[$]})}var ie=/\/+/g;function Q(m,U){return typeof m=="object"&&m!==null&&m.key!=null?ce(""+m.key):U.toString(36)}function me(){}function pe(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(me,me):(m.status="pending",m.then(function(U){m.status==="pending"&&(m.status="fulfilled",m.value=U)},function(U){m.status==="pending"&&(m.status="rejected",m.reason=U)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function J(m,U,$,I,ne){var ge=typeof m;(ge==="undefined"||ge==="boolean")&&(m=null);var re=!1;if(m===null)re=!0;else switch(ge){case"bigint":case"string":case"number":re=!0;break;case"object":switch(m.$$typeof){case r:case u:re=!0;break;case w:return re=m._init,J(re(m._payload),U,$,I,ne)}}if(re)return ne=ne(m),re=I===""?"."+Q(m,0):I,z(ne)?($="",re!=null&&($=re.replace(ie,"$&/")+"/"),J(ne,U,$,"",function(Ae){return Ae})):ne!=null&&(be(ne)&&(ne=se(ne,$+(ne.key==null||m&&m.key===ne.key?"":(""+ne.key).replace(ie,"$&/")+"/")+re)),U.push(ne)),1;re=0;var fe=I===""?".":I+":";if(z(m))for(var le=0;le<m.length;le++)I=m[le],ge=fe+Q(I,le),re+=J(I,U,$,ge,ne);else if(le=k(m),typeof le=="function")for(m=le.call(m),le=0;!(I=m.next()).done;)I=I.value,ge=fe+Q(I,le++),re+=J(I,U,$,ge,ne);else if(ge==="object"){if(typeof m.then=="function")return J(pe(m),U,$,I,ne);throw U=String(m),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return re}function y(m,U,$){if(m==null)return m;var I=[],ne=0;return J(m,I,"","",function(ge){return U.call($,ge,ne++)}),I}function G(m){if(m._status===-1){var U=m._result;U=U(),U.then(function($){(m._status===0||m._status===-1)&&(m._status=1,m._result=$)},function($){(m._status===0||m._status===-1)&&(m._status=2,m._result=$)}),m._status===-1&&(m._status=0,m._result=U)}if(m._status===1)return m._result.default;throw m._result}var K=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)};function ee(){}return ye.Children={map:y,forEach:function(m,U,$){y(m,function(){U.apply(this,arguments)},$)},count:function(m){var U=0;return y(m,function(){U++}),U},toArray:function(m){return y(m,function(U){return U})||[]},only:function(m){if(!be(m))throw Error("React.Children.only expected to receive a single React element child.");return m}},ye.Component=N,ye.Fragment=f,ye.Profiler=g,ye.PureComponent=_,ye.StrictMode=o,ye.Suspense=S,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ye.__COMPILER_RUNTIME={__proto__:null,c:function(m){return X.H.useMemoCache(m)}},ye.cache=function(m){return function(){return m.apply(null,arguments)}},ye.cloneElement=function(m,U,$){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var I=x({},m.props),ne=m.key,ge=void 0;if(U!=null)for(re in U.ref!==void 0&&(ge=void 0),U.key!==void 0&&(ne=""+U.key),U)!P.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||(I[re]=U[re]);var re=arguments.length-2;if(re===1)I.children=$;else if(1<re){for(var fe=Array(re),le=0;le<re;le++)fe[le]=arguments[le+2];I.children=fe}return te(m.type,ne,void 0,void 0,ge,I)},ye.createContext=function(m){return m={$$typeof:v,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:h,_context:m},m},ye.createElement=function(m,U,$){var I,ne={},ge=null;if(U!=null)for(I in U.key!==void 0&&(ge=""+U.key),U)P.call(U,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ne[I]=U[I]);var re=arguments.length-2;if(re===1)ne.children=$;else if(1<re){for(var fe=Array(re),le=0;le<re;le++)fe[le]=arguments[le+2];ne.children=fe}if(m&&m.defaultProps)for(I in re=m.defaultProps,re)ne[I]===void 0&&(ne[I]=re[I]);return te(m,ge,void 0,void 0,null,ne)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(m){return{$$typeof:T,render:m}},ye.isValidElement=be,ye.lazy=function(m){return{$$typeof:w,_payload:{_status:-1,_result:m},_init:G}},ye.memo=function(m,U){return{$$typeof:p,type:m,compare:U===void 0?null:U}},ye.startTransition=function(m){var U=X.T,$={};X.T=$;try{var I=m(),ne=X.S;ne!==null&&ne($,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(ee,K)}catch(ge){K(ge)}finally{X.T=U}},ye.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ye.use=function(m){return X.H.use(m)},ye.useActionState=function(m,U,$){return X.H.useActionState(m,U,$)},ye.useCallback=function(m,U){return X.H.useCallback(m,U)},ye.useContext=function(m){return X.H.useContext(m)},ye.useDebugValue=function(){},ye.useDeferredValue=function(m,U){return X.H.useDeferredValue(m,U)},ye.useEffect=function(m,U,$){var I=X.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return I.useEffect(m,U)},ye.useId=function(){return X.H.useId()},ye.useImperativeHandle=function(m,U,$){return X.H.useImperativeHandle(m,U,$)},ye.useInsertionEffect=function(m,U){return X.H.useInsertionEffect(m,U)},ye.useLayoutEffect=function(m,U){return X.H.useLayoutEffect(m,U)},ye.useMemo=function(m,U){return X.H.useMemo(m,U)},ye.useOptimistic=function(m,U){return X.H.useOptimistic(m,U)},ye.useReducer=function(m,U,$){return X.H.useReducer(m,U,$)},ye.useRef=function(m){return X.H.useRef(m)},ye.useState=function(m){return X.H.useState(m)},ye.useSyncExternalStore=function(m,U,$){return X.H.useSyncExternalStore(m,U,$)},ye.useTransition=function(){return X.H.useTransition()},ye.version="19.1.0",ye}var qd;function Hs(){return qd||(qd=1,Ts.exports=ob()),Ts.exports}var L=Hs();const en=dg(L);var _s={exports:{}},Ya={},js={exports:{}},Cs={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Gd;function cb(){return Gd||(Gd=1,function(r){function u(y,G){var K=y.length;y.push(G);e:for(;0<K;){var ee=K-1>>>1,m=y[ee];if(0<g(m,G))y[ee]=G,y[K]=m,K=ee;else break e}}function f(y){return y.length===0?null:y[0]}function o(y){if(y.length===0)return null;var G=y[0],K=y.pop();if(K!==G){y[0]=K;e:for(var ee=0,m=y.length,U=m>>>1;ee<U;){var $=2*(ee+1)-1,I=y[$],ne=$+1,ge=y[ne];if(0>g(I,K))ne<m&&0>g(ge,I)?(y[ee]=ge,y[ne]=K,ee=ne):(y[ee]=I,y[$]=K,ee=$);else if(ne<m&&0>g(ge,K))y[ee]=ge,y[ne]=K,ee=ne;else break e}}return G}function g(y,G){var K=y.sortIndex-G.sortIndex;return K!==0?K:y.id-G.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var v=Date,T=v.now();r.unstable_now=function(){return v.now()-T}}var S=[],p=[],w=1,b=null,k=3,q=!1,x=!1,A=!1,N=!1,j=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function z(y){for(var G=f(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=y)o(p),G.sortIndex=G.expirationTime,u(S,G);else break;G=f(p)}}function X(y){if(A=!1,z(y),!x)if(f(S)!==null)x=!0,P||(P=!0,Q());else{var G=f(p);G!==null&&J(X,G.startTime-y)}}var P=!1,te=-1,se=5,be=-1;function ce(){return N?!0:!(r.unstable_now()-be<se)}function ie(){if(N=!1,P){var y=r.unstable_now();be=y;var G=!0;try{e:{x=!1,A&&(A=!1,_(te),te=-1),q=!0;var K=k;try{t:{for(z(y),b=f(S);b!==null&&!(b.expirationTime>y&&ce());){var ee=b.callback;if(typeof ee=="function"){b.callback=null,k=b.priorityLevel;var m=ee(b.expirationTime<=y);if(y=r.unstable_now(),typeof m=="function"){b.callback=m,z(y),G=!0;break t}b===f(S)&&o(S),z(y)}else o(S);b=f(S)}if(b!==null)G=!0;else{var U=f(p);U!==null&&J(X,U.startTime-y),G=!1}}break e}finally{b=null,k=K,q=!1}G=void 0}}finally{G?Q():P=!1}}}var Q;if(typeof H=="function")Q=function(){H(ie)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,pe=me.port2;me.port1.onmessage=ie,Q=function(){pe.postMessage(null)}}else Q=function(){j(ie,0)};function J(y,G){te=j(function(){y(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(y){y.callback=null},r.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<y?Math.floor(1e3/y):5},r.unstable_getCurrentPriorityLevel=function(){return k},r.unstable_next=function(y){switch(k){case 1:case 2:case 3:var G=3;break;default:G=k}var K=k;k=G;try{return y()}finally{k=K}},r.unstable_requestPaint=function(){N=!0},r.unstable_runWithPriority=function(y,G){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var K=k;k=y;try{return G()}finally{k=K}},r.unstable_scheduleCallback=function(y,G,K){var ee=r.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ee+K:ee):K=ee,y){case 1:var m=-1;break;case 2:m=250;break;case 5:m=1073741823;break;case 4:m=1e4;break;default:m=5e3}return m=K+m,y={id:w++,callback:G,priorityLevel:y,startTime:K,expirationTime:m,sortIndex:-1},K>ee?(y.sortIndex=K,u(p,y),f(S)===null&&y===f(p)&&(A?(_(te),te=-1):A=!0,J(X,K-ee))):(y.sortIndex=m,u(S,y),x||q||(x=!0,P||(P=!0,Q()))),y},r.unstable_shouldYield=ce,r.unstable_wrapCallback=function(y){var G=k;return function(){var K=k;k=G;try{return y.apply(this,arguments)}finally{k=K}}}}(Cs)),Cs}var Yd;function fb(){return Yd||(Yd=1,js.exports=cb()),js.exports}var ks={exports:{}},it={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Zd;function db(){if(Zd)return it;Zd=1;var r=Hs();function u(S){var p="https://react.dev/errors/"+S;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)p+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+S+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(u(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},g=Symbol.for("react.portal");function h(S,p,w){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:b==null?null:""+b,children:S,containerInfo:p,implementation:w}}var v=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(S,p){if(S==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(S,p){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return h(S,p,null,w)},it.flushSync=function(S){var p=v.T,w=o.p;try{if(v.T=null,o.p=2,S)return S()}finally{v.T=p,o.p=w,o.d.f()}},it.preconnect=function(S,p){typeof S=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(S,p))},it.prefetchDNS=function(S){typeof S=="string"&&o.d.D(S)},it.preinit=function(S,p){if(typeof S=="string"&&p&&typeof p.as=="string"){var w=p.as,b=T(w,p.crossOrigin),k=typeof p.integrity=="string"?p.integrity:void 0,q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;w==="style"?o.d.S(S,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:k,fetchPriority:q}):w==="script"&&o.d.X(S,{crossOrigin:b,integrity:k,fetchPriority:q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},it.preinitModule=function(S,p){if(typeof S=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var w=T(p.as,p.crossOrigin);o.d.M(S,{crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(S)},it.preload=function(S,p){if(typeof S=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var w=p.as,b=T(w,p.crossOrigin);o.d.L(S,w,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},it.preloadModule=function(S,p){if(typeof S=="string")if(p){var w=T(p.as,p.crossOrigin);o.d.m(S,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:w,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(S)},it.requestFormReset=function(S){o.d.r(S)},it.unstable_batchedUpdates=function(S,p){return S(p)},it.useFormState=function(S,p,w){return v.H.useFormState(S,p,w)},it.useFormStatus=function(){return v.H.useHostTransitionStatus()},it.version="19.1.0",it}var Vd;function gb(){if(Vd)return ks.exports;Vd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(u){console.error(u)}}return r(),ks.exports=db(),ks.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Xd;function hb(){if(Xd)return Ya;Xd=1;var r=fb(),u=Hs(),f=gb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(h(e)!==e)throw Error(o(188))}function S(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return T(a),e;if(i===n)return T(a),t;i=i.sibling}throw Error(o(188))}if(l.return!==n.return)l=a,n=i;else{for(var c=!1,d=a.child;d;){if(d===l){c=!0,l=a,n=i;break}if(d===n){c=!0,n=a,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,n=a;break}if(d===n){c=!0,n=i,l=a;break}d=d.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==n)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,b=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),H=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),be=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function Q(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case X:return"Suspense";case P:return"SuspenseList";case be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case H:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case te:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var J=Array.isArray,y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ee=[],m=-1;function U(e){return{current:e}}function $(e){0>m||(e.current=ee[m],ee[m]=null,m--)}function I(e,t){m++,ee[m]=e.current,e.current=t}var ne=U(null),ge=U(null),re=U(null),fe=U(null);function le(e,t){switch(I(re,t),I(ge,e),I(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fd(t),e=dd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ne),I(ne,e)}function Ae(){$(ne),$(ge),$(re)}function qe(e){e.memoizedState!==null&&I(fe,e);var t=ne.current,l=dd(t,e.type);t!==l&&(I(ge,e),I(ne,l))}function tn(e){ge.current===e&&($(ne),$(ge)),fe.current===e&&($(fe),La._currentValue=K)}var zl=Object.prototype.hasOwnProperty,ln=r.unstable_scheduleCallback,Zn=r.unstable_cancelCallback,Xa=r.unstable_shouldYield,fr=r.unstable_requestPaint,At=r.unstable_now,dr=r.unstable_getCurrentPriorityLevel,W=r.unstable_ImmediatePriority,Te=r.unstable_UserBlockingPriority,Ne=r.unstable_NormalPriority,Bt=r.unstable_LowPriority,Xt=r.unstable_IdlePriority,Ml=r.log,gr=r.unstable_setDisableYieldValue,Vn=null,gt=null;function sl(e){if(typeof Ml=="function"&&gr(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Vn,e)}catch{}}var ht=Math.clz32?Math.clz32:Qg,Xg=Math.log,Fg=Math.LN2;function Qg(e){return e>>>=0,e===0?32:31-(Xg(e)/Fg|0)|0}var Fa=256,Qa=4194304;function Ll(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $a(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?a=Ll(n):(c&=d,c!==0?a=Ll(c):l||(l=d&~e,l!==0&&(a=Ll(l))))):(d=n&~i,d!==0?a=Ll(d):c!==0?a=Ll(c):l||(l=n&~e,l!==0&&(a=Ll(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function Xn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $g(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fs(){var e=Fa;return Fa<<=1,(Fa&4194048)===0&&(Fa=256),e}function Qs(){var e=Qa;return Qa<<=1,(Qa&62914560)===0&&(Qa=4194304),e}function hr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Kg(e,t,l,n,a,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,E=e.expirationTimes,R=e.hiddenUpdates;for(l=c&~l;0<l;){var Y=31-ht(l),F=1<<Y;d[Y]=0,E[Y]=-1;var M=R[Y];if(M!==null)for(R[Y]=null,Y=0;Y<M.length;Y++){var B=M[Y];B!==null&&(B.lane&=-536870913)}l&=~F}n!==0&&$s(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function $s(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-ht(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&4194090}function Ks(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-ht(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function pr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function br(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Is(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Od(e.type))}function Ig(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var ol=Math.random().toString(36).slice(2),nt="__reactFiber$"+ol,ut="__reactProps$"+ol,nn="__reactContainer$"+ol,yr="__reactEvents$"+ol,Jg="__reactListeners$"+ol,Wg="__reactHandles$"+ol,Js="__reactResources$"+ol,Qn="__reactMarker$"+ol;function mr(e){delete e[nt],delete e[ut],delete e[yr],delete e[Jg],delete e[Wg]}function an(e){var t=e[nt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[nn]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=bd(e);e!==null;){if(l=e[nt])return l;e=bd(e)}return t}e=l,l=e.parentNode}return null}function rn(e){if(e=e[nt]||e[nn]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function $n(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function un(e){var t=e[Js];return t||(t=e[Js]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Qn]=!0}var Ws=new Set,Ps={};function Ul(e,t){sn(e,t),sn(e+"Capture",t)}function sn(e,t){for(Ps[e]=t,e=0;e<t.length;e++)Ws.add(t[e])}var Pg=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eo={},to={};function eh(e){return zl.call(to,e)?!0:zl.call(eo,e)?!1:Pg.test(e)?to[e]=!0:(eo[e]=!0,!1)}function Ka(e,t,l){if(eh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ia(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Ft(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}var vr,lo;function on(e){if(vr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);vr=t&&t[1]||"",lo=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+vr+e+lo}var xr=!1;function Sr(e,t){if(!e||xr)return"";xr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(B){var M=B}Reflect.construct(e,[],F)}else{try{F.call()}catch(B){M=B}e.call(F.prototype)}}else{try{throw Error()}catch(B){M=B}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(B){if(B&&M&&typeof B.stack=="string")return[B.stack,M.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var E=c.split(`
44
+ `),R=d.split(`
45
+ `);for(a=n=0;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;for(;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;if(n===E.length||a===R.length)for(n=E.length-1,a=R.length-1;1<=n&&0<=a&&E[n]!==R[a];)a--;for(;1<=n&&0<=a;n--,a--)if(E[n]!==R[a]){if(n!==1||a!==1)do if(n--,a--,0>a||E[n]!==R[a]){var Y=`
46
+ `+E[n].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=n&&0<=a);break}}}finally{xr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?on(l):""}function th(e){switch(e.tag){case 26:case 27:case 5:return on(e.type);case 16:return on("Lazy");case 13:return on("Suspense");case 19:return on("SuspenseList");case 0:case 15:return Sr(e.type,!1);case 11:return Sr(e.type.render,!1);case 1:return Sr(e.type,!0);case 31:return on("Activity");default:return""}}function no(e){try{var t="";do t+=th(e),e=e.return;while(e);return t}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ao(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lh(e){var t=ao(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){n=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ja(e){e._valueTracker||(e._valueTracker=lh(e))}function io(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=ao(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Wa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var nh=/[\n"\\]/g;function _t(e){return e.replace(nh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Er(e,t,l,n,a,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Nr(e,c,Tt(t)):l!=null?Nr(e,c,Tt(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Tt(d):e.removeAttribute("name")}function ro(e,t,l,n,a,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c)}function Nr(e,t,l){t==="number"&&Wa(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function cn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function uo(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function so(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(o(92));if(J(n)){if(1<n.length)throw Error(o(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n)}function fn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ah=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function oo(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||ah.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function co(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&oo(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&oo(e,i,t[i])}function wr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ih=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pa(e){return rh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ar=null;function Tr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dn=null,gn=null;function fo(e){var t=rn(e);if(t&&(e=t.stateNode)){var l=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Er(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[ut]||null;if(!a)throw Error(o(90));Er(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&io(n)}break e;case"textarea":uo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&cn(e,!!l.multiple,t,!1)}}}var _r=!1;function go(e,t,l){if(_r)return e(t,l);_r=!0;try{var n=e(t);return n}finally{if(_r=!1,(dn!==null||gn!==null)&&(Bi(),dn&&(t=dn,e=gn,gn=dn=null,fo(t),e)))for(t=0;t<e.length;t++)fo(e[t])}}function Kn(e,t){var l=e.stateNode;if(l===null)return null;var n=l[ut]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jr=!1;if(Qt)try{var In={};Object.defineProperty(In,"passive",{get:function(){jr=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{jr=!1}var cl=null,Cr=null,ei=null;function ho(){if(ei)return ei;var e,t=Cr,l=t.length,n,a="value"in cl?cl.value:cl.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var c=l-e;for(n=1;n<=c&&t[l-n]===a[i-n];n++);return ei=a.slice(e,1<n?1-n:void 0)}function ti(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function li(){return!0}function po(){return!1}function st(e){function t(l,n,a,i,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?li:po,this.isPropagationStopped=po,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ni=st(Bl),Jn=w({},Bl,{view:0,detail:0}),uh=st(Jn),kr,Or,Wn,ai=w({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wn&&(Wn&&e.type==="mousemove"?(kr=e.screenX-Wn.screenX,Or=e.screenY-Wn.screenY):Or=kr=0,Wn=e),kr)},movementY:function(e){return"movementY"in e?e.movementY:Or}}),bo=st(ai),sh=w({},ai,{dataTransfer:0}),oh=st(sh),ch=w({},Jn,{relatedTarget:0}),Dr=st(ch),fh=w({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),dh=st(fh),gh=w({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hh=st(gh),ph=w({},Bl,{data:0}),yo=st(ph),bh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mh[e])?!!t[e]:!1}function Rr(){return vh}var xh=w({},Jn,{key:function(e){if(e.key){var t=bh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?yh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rr,charCode:function(e){return e.type==="keypress"?ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sh=st(xh),Eh=w({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mo=st(Eh),Nh=w({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rr}),wh=st(Nh),Ah=w({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Th=st(Ah),_h=w({},ai,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jh=st(_h),Ch=w({},Bl,{newState:0,oldState:0}),kh=st(Ch),Oh=[9,13,27,32],zr=Qt&&"CompositionEvent"in window,Pn=null;Qt&&"documentMode"in document&&(Pn=document.documentMode);var Dh=Qt&&"TextEvent"in window&&!Pn,vo=Qt&&(!zr||Pn&&8<Pn&&11>=Pn),xo=" ",So=!1;function Eo(e,t){switch(e){case"keyup":return Oh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function No(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hn=!1;function Rh(e,t){switch(e){case"compositionend":return No(t);case"keypress":return t.which!==32?null:(So=!0,xo);case"textInput":return e=t.data,e===xo&&So?null:e;default:return null}}function zh(e,t){if(hn)return e==="compositionend"||!zr&&Eo(e,t)?(e=ho(),ei=Cr=cl=null,hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vo&&t.locale!=="ko"?null:t.data;default:return null}}var Mh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mh[e.type]:t==="textarea"}function Ao(e,t,l,n){dn?gn?gn.push(n):gn=[n]:dn=n,t=Vi(t,"onChange"),0<t.length&&(l=new ni("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var ea=null,ta=null;function Lh(e){rd(e,0)}function ii(e){var t=$n(e);if(io(t))return e}function To(e,t){if(e==="change")return t}var _o=!1;if(Qt){var Mr;if(Qt){var Lr="oninput"in document;if(!Lr){var jo=document.createElement("div");jo.setAttribute("oninput","return;"),Lr=typeof jo.oninput=="function"}Mr=Lr}else Mr=!1;_o=Mr&&(!document.documentMode||9<document.documentMode)}function Co(){ea&&(ea.detachEvent("onpropertychange",ko),ta=ea=null)}function ko(e){if(e.propertyName==="value"&&ii(ta)){var t=[];Ao(t,ta,e,Tr(e)),go(Lh,t)}}function Uh(e,t,l){e==="focusin"?(Co(),ea=t,ta=l,ea.attachEvent("onpropertychange",ko)):e==="focusout"&&Co()}function Bh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ii(ta)}function Hh(e,t){if(e==="click")return ii(t)}function qh(e,t){if(e==="input"||e==="change")return ii(t)}function Gh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Gh;function la(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!zl.call(t,a)||!pt(e[a],t[a]))return!1}return!0}function Oo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Do(e,t){var l=Oo(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Oo(l)}}function Ro(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ro(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wa(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Wa(e.document)}return t}function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yh=Qt&&"documentMode"in document&&11>=document.documentMode,pn=null,Br=null,na=null,Hr=!1;function Mo(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hr||pn==null||pn!==Wa(n)||(n=pn,"selectionStart"in n&&Ur(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),na&&la(na,n)||(na=n,n=Vi(Br,"onSelect"),0<n.length&&(t=new ni("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=pn)))}function Hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var bn={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionrun:Hl("Transition","TransitionRun"),transitionstart:Hl("Transition","TransitionStart"),transitioncancel:Hl("Transition","TransitionCancel"),transitionend:Hl("Transition","TransitionEnd")},qr={},Lo={};Qt&&(Lo=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function ql(e){if(qr[e])return qr[e];if(!bn[e])return e;var t=bn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Lo)return qr[e]=t[l];return e}var Uo=ql("animationend"),Bo=ql("animationiteration"),Ho=ql("animationstart"),Zh=ql("transitionrun"),Vh=ql("transitionstart"),Xh=ql("transitioncancel"),qo=ql("transitionend"),Go=new Map,Gr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Gr.push("scrollEnd");function Mt(e,t){Go.set(e,t),Ul(t,[e])}var Yo=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=Yo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:no(t)},Yo.set(e,t),t)}return{value:e,source:t,stack:no(t)}}var Ct=[],yn=0,Yr=0;function ri(){for(var e=yn,t=Yr=yn=0;t<e;){var l=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var a=Ct[t];Ct[t++]=null;var i=Ct[t];if(Ct[t++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}i!==0&&Zo(l,a,i)}}function ui(e,t,l,n){Ct[yn++]=e,Ct[yn++]=t,Ct[yn++]=l,Ct[yn++]=n,Yr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Zr(e,t,l,n){return ui(e,t,l,n),si(e)}function mn(e,t){return ui(e,null,null,t),si(e)}function Zo(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-ht(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function si(e){if(50<ja)throw ja=0,Ku=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vn={};function Fh(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,n){return new Fh(e,t,l,n)}function Vr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Vo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oi(e,t,l,n,a,i){var c=0;if(n=e,typeof e=="function")Vr(e)&&(c=1);else if(typeof e=="string")c=$p(e,l,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case be:return e=bt(31,l,t,a),e.elementType=be,e.lanes=i,e;case x:return Gl(l.children,a,i,t);case A:c=8,a|=24;break;case N:return e=bt(12,l,t,a|2),e.elementType=N,e.lanes=i,e;case X:return e=bt(13,l,t,a),e.elementType=X,e.lanes=i,e;case P:return e=bt(19,l,t,a),e.elementType=P,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:case H:c=10;break e;case _:c=9;break e;case z:c=11;break e;case te:c=14;break e;case se:c=16,n=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=bt(c,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Gl(e,t,l,n){return e=bt(7,e,n,t),e.lanes=l,e}function Xr(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Fr(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xn=[],Sn=0,ci=null,fi=0,kt=[],Ot=0,Yl=null,Kt=1,It="";function Zl(e,t){xn[Sn++]=fi,xn[Sn++]=ci,ci=e,fi=t}function Xo(e,t,l){kt[Ot++]=Kt,kt[Ot++]=It,kt[Ot++]=Yl,Yl=e;var n=Kt;e=It;var a=32-ht(n)-1;n&=~(1<<a),l+=1;var i=32-ht(t)+a;if(30<i){var c=a-a%5;i=(n&(1<<c)-1).toString(32),n>>=c,a-=c,Kt=1<<32-ht(t)+a|l<<a|n,It=i+e}else Kt=1<<i|l<<a|n,It=e}function Qr(e){e.return!==null&&(Zl(e,1),Xo(e,1,0))}function $r(e){for(;e===ci;)ci=xn[--Sn],xn[Sn]=null,fi=xn[--Sn],xn[Sn]=null;for(;e===Yl;)Yl=kt[--Ot],kt[Ot]=null,It=kt[--Ot],kt[Ot]=null,Kt=kt[--Ot],kt[Ot]=null}var rt=null,Ge=null,je=!1,Vl=null,Ht=!1,Kr=Error(o(519));function Xl(e){var t=Error(o(418,""));throw ra(jt(t,e)),Kr}function Fo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[nt]=e,t[ut]=n,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<ka.length;l++)Ee(ka[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),ro(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),Ja(t);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),so(t,n.value,n.defaultValue,n.children),Ja(t)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||cd(t.textContent,l)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=Xi),t=!0):t=!1,t||Xl(e)}function Qo(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:rt=rt.return}}function aa(e){if(e!==rt)return!1;if(!je)return Qo(e),je=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||fs(e.type,e.memoizedProps)),l=!l),l&&Ge&&Xl(e),Qo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Ge=Ut(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ge=null}}else t===27?(t=Ge,Tl(e.type)?(e=ps,ps=null,Ge=e):Ge=t):Ge=rt?Ut(e.stateNode.nextSibling):null;return!0}function ia(){Ge=rt=null,je=!1}function $o(){var e=Vl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),Vl=null),e}function ra(e){Vl===null?Vl=[e]:Vl.push(e)}var Ir=U(null),Fl=null,Jt=null;function fl(e,t,l){I(Ir,t._currentValue),t._currentValue=l}function Wt(e){e._currentValue=Ir.current,$(Ir)}function Jr(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function Wr(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var c=a.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=a;for(var E=0;E<t.length;E++)if(d.context===t[E]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Jr(i.return,l,e),n||(c=null);break e}i=d.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(o(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),Jr(c,l,e),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===e){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function ua(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var d=a.type;pt(a.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(a===fe.current){if(c=a.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(La):e=[La])}a=a.return}e!==null&&Wr(t,e,l,n),t.flags|=262144}function di(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Fl=e,Jt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Ko(Fl,e)}function gi(e,t){return Fl===null&&Ql(e),Ko(e,t)}function Ko(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Jt===null){if(e===null)throw Error(o(308));Jt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jt=Jt.next=t;return l}var Qh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},$h=r.unstable_scheduleCallback,Kh=r.unstable_NormalPriority,Qe={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pr(){return{controller:new Qh,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&$h(Kh,function(){e.controller.abort()})}var oa=null,eu=0,En=0,Nn=null;function Ih(e,t){if(oa===null){var l=oa=[];eu=0,En=ls(),Nn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return eu++,t.then(Io,Io),t}function Io(){if(--eu===0&&oa!==null){Nn!==null&&(Nn.status="fulfilled");var e=oa;oa=null,En=0,Nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jh(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Jo=y.S;y.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ih(e,t),Jo!==null&&Jo(e,t)};var $l=U(null);function tu(){var e=$l.current;return e!==null?e:Le.pooledCache}function hi(e,t){t===null?I($l,$l.current):I($l,t.pool)}function Wo(){var e=tu();return e===null?null:{parent:Qe._currentValue,pool:e}}var ca=Error(o(460)),Po=Error(o(474)),pi=Error(o(542)),lu={then:function(){}};function ec(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bi(){}function tc(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(bi,bi),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nc(e),e;default:if(typeof t.status=="string")t.then(bi,bi);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nc(e),e}throw fa=t,ca}}var fa=null;function lc(){if(fa===null)throw Error(o(459));var e=fa;return fa=null,e}function nc(e){if(e===ca||e===pi)throw Error(o(483))}var dl=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function hl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=si(e),Zo(e,null,l),t}return ui(e,n,t,l),si(e)}function da(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ks(e,l)}}function iu(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ru=!1;function ga(){if(ru){var e=Nn;if(e!==null)throw e}}function ha(e,t,l,n){ru=!1;var a=e.updateQueue;dl=!1;var i=a.firstBaseUpdate,c=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var E=d,R=E.next;E.next=null,c===null?i=R:c.next=R,c=E;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,d=Y.lastBaseUpdate,d!==c&&(d===null?Y.firstBaseUpdate=R:d.next=R,Y.lastBaseUpdate=E))}if(i!==null){var F=a.baseState;c=0,Y=R=E=null,d=i;do{var M=d.lane&-536870913,B=M!==d.lane;if(B?(we&M)===M:(n&M)===M){M!==0&&M===En&&(ru=!0),Y!==null&&(Y=Y.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var he=e,oe=d;M=t;var Re=l;switch(oe.tag){case 1:if(he=oe.payload,typeof he=="function"){F=he.call(Re,F,M);break e}F=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=oe.payload,M=typeof he=="function"?he.call(Re,F,M):he,M==null)break e;F=w({},F,M);break e;case 2:dl=!0}}M=d.callback,M!==null&&(e.flags|=64,B&&(e.flags|=8192),B=a.callbacks,B===null?a.callbacks=[M]:B.push(M))}else B={lane:M,tag:d.tag,payload:d.payload,callback:d.callback,next:null},Y===null?(R=Y=B,E=F):Y=Y.next=B,c|=M;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;B=d,d=B.next,B.next=null,a.lastBaseUpdate=B,a.shared.pending=null}}while(!0);Y===null&&(E=F),a.baseState=E,a.firstBaseUpdate=R,a.lastBaseUpdate=Y,i===null&&(a.shared.lanes=0),El|=c,e.lanes=c,e.memoizedState=F}}function ac(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ic(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ac(l[e],t)}var wn=U(null),yi=U(0);function rc(e,t){e=il,I(yi,e),I(wn,t),il=e|t.baseLanes}function uu(){I(yi,il),I(wn,wn.current)}function su(){il=yi.current,$(wn),$(yi)}var pl=0,ve=null,Oe=null,Xe=null,mi=!1,An=!1,Kl=!1,vi=0,pa=0,Tn=null,Wh=0;function Ze(){throw Error(o(321))}function ou(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function cu(e,t,l,n,a,i){return pl=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,y.H=e===null||e.memoizedState===null?Zc:Vc,Kl=!1,i=l(n,a),Kl=!1,An&&(i=sc(t,l,n,a)),uc(e),i}function uc(e){y.H=Ai;var t=Oe!==null&&Oe.next!==null;if(pl=0,Xe=Oe=ve=null,mi=!1,pa=0,Tn=null,t)throw Error(o(300));e===null||Ie||(e=e.dependencies,e!==null&&di(e)&&(Ie=!0))}function sc(e,t,l,n){ve=e;var a=0;do{if(An&&(Tn=null),pa=0,An=!1,25<=a)throw Error(o(301));if(a+=1,Xe=Oe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}y.H=ip,i=t(l,n)}while(An);return i}function Ph(){var e=y.H,t=e.useState()[0];return t=typeof t.then=="function"?ba(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ve.flags|=1024),t}function fu(){var e=vi!==0;return vi=0,e}function du(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function gu(e){if(mi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mi=!1}pl=0,Xe=Oe=ve=null,An=!1,pa=vi=0,Tn=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?ve.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Fe(){if(Oe===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Xe===null?ve.memoizedState:Xe.next;if(t!==null)Xe=t,Oe=e;else{if(e===null)throw ve.alternate===null?Error(o(467)):Error(o(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Xe===null?ve.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ba(e){var t=pa;return pa+=1,Tn===null&&(Tn=[]),e=tc(Tn,e,t),t=ve,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,y.H=t===null||t.memoizedState===null?Zc:Vc),e}function xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ba(e);if(e.$$typeof===H)return at(e)}throw Error(o(438,String(e)))}function pu(e){var t=null,l=ve.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=ve.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=hu(),ve.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=ce;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Si(e){var t=Fe();return bu(t,Oe,e)}function bu(e,t,l){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var c=a.next;a.next=i.next,i.next=c}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var d=c=null,E=null,R=t,Y=!1;do{var F=R.lane&-536870913;if(F!==R.lane?(we&F)===F:(pl&F)===F){var M=R.revertLane;if(M===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),F===En&&(Y=!0);else if((pl&M)===M){R=R.next,M===En&&(Y=!0);continue}else F={lane:0,revertLane:R.revertLane,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},E===null?(d=E=F,c=i):E=E.next=F,ve.lanes|=M,El|=M;F=R.action,Kl&&l(i,F),i=R.hasEagerState?R.eagerState:l(i,F)}else M={lane:F,revertLane:R.revertLane,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},E===null?(d=E=M,c=i):E=E.next=M,ve.lanes|=F,El|=F;R=R.next}while(R!==null&&R!==t);if(E===null?c=i:E.next=d,!pt(i,e.memoizedState)&&(Ie=!0,Y&&(l=Nn,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=E,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function yu(e){var t=Fe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do i=e(i,c.action),c=c.next;while(c!==a);pt(i,t.memoizedState)||(Ie=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function oc(e,t,l){var n=ve,a=Fe(),i=je;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!pt((Oe||a).memoizedState,l);c&&(a.memoizedState=l,Ie=!0),a=a.queue;var d=dc.bind(null,n,a,e);if(ya(2048,8,d,[e]),a.getSnapshot!==t||c||Xe!==null&&Xe.memoizedState.tag&1){if(n.flags|=2048,_n(9,Ei(),fc.bind(null,n,a,l,t),null),Le===null)throw Error(o(349));i||(pl&124)!==0||cc(n,t,l)}return l}function cc(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ve.updateQueue,t===null?(t=hu(),ve.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function fc(e,t,l,n){t.value=l,t.getSnapshot=n,gc(t)&&hc(e)}function dc(e,t,l){return l(function(){gc(t)&&hc(e)})}function gc(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function hc(e){var t=mn(e,2);t!==null&&St(t,e,2)}function mu(e){var t=ot();if(typeof e=="function"){var l=e;if(e=l(),Kl){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function pc(e,t,l,n){return e.baseState=l,bu(e,Oe,typeof n=="function"?n:Pt)}function ep(e,t,l,n,a){if(wi(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};y.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,bc(t,i)):(i.next=l.next,t.pending=l.next=i)}}function bc(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=y.T,c={};y.T=c;try{var d=l(a,n),E=y.S;E!==null&&E(c,d),yc(e,t,d)}catch(R){vu(e,t,R)}finally{y.T=i}}else try{i=l(a,n),yc(e,t,i)}catch(R){vu(e,t,R)}}function yc(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){mc(e,t,n)},function(n){return vu(e,t,n)}):mc(e,t,l)}function mc(e,t,l){t.status="fulfilled",t.value=l,vc(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,bc(e,l)))}function vu(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,vc(t),t=t.next;while(t!==n)}e.action=null}function vc(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xc(e,t){return t}function Sc(e,t){if(je){var l=Le.formState;if(l!==null){e:{var n=ve;if(je){if(Ge){t:{for(var a=Ge,i=Ht;a.nodeType!==8;){if(!i){a=null;break t}if(a=Ut(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ge=Ut(a.nextSibling),n=a.data==="F!";break e}}Xl(n)}n=!1}n&&(t=l[0])}}return l=ot(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xc,lastRenderedState:t},l.queue=n,l=qc.bind(null,ve,n),n.dispatch=l,n=mu(!1),i=wu.bind(null,ve,!1,n.queue),n=ot(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=ep.bind(null,ve,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Ec(e){var t=Fe();return Nc(t,Oe,e)}function Nc(e,t,l){if(t=bu(e,t,xc)[0],e=Si(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ba(t)}catch(c){throw c===ca?pi:c}else n=t;t=Fe();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(ve.flags|=2048,_n(9,Ei(),tp.bind(null,a,l),null)),[n,i,e]}function tp(e,t){e.action=t}function wc(e){var t=Fe(),l=Oe;if(l!==null)return Nc(t,l,e);Fe(),t=t.memoizedState,l=Fe();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function _n(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=ve.updateQueue,t===null&&(t=hu(),ve.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Ei(){return{destroy:void 0,resource:void 0}}function Ac(){return Fe().memoizedState}function Ni(e,t,l,n){var a=ot();n=n===void 0?null:n,ve.flags|=e,a.memoizedState=_n(1|t,Ei(),l,n)}function ya(e,t,l,n){var a=Fe();n=n===void 0?null:n;var i=a.memoizedState.inst;Oe!==null&&n!==null&&ou(n,Oe.memoizedState.deps)?a.memoizedState=_n(t,i,l,n):(ve.flags|=e,a.memoizedState=_n(1|t,i,l,n))}function Tc(e,t){Ni(8390656,8,e,t)}function _c(e,t){ya(2048,8,e,t)}function jc(e,t){return ya(4,2,e,t)}function Cc(e,t){return ya(4,4,e,t)}function kc(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oc(e,t,l){l=l!=null?l.concat([e]):null,ya(4,4,kc.bind(null,t,e),l)}function xu(){}function Dc(e,t){var l=Fe();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&ou(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Rc(e,t){var l=Fe();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&ou(t,n[1]))return n[0];if(n=e(),Kl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[n,t],n}function Su(e,t,l){return l===void 0||(pl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Uf(),ve.lanes|=e,El|=e,l)}function zc(e,t,l,n){return pt(l,t)?l:wn.current!==null?(e=Su(e,l,n),pt(e,t)||(Ie=!0),e):(pl&42)===0?(Ie=!0,e.memoizedState=l):(e=Uf(),ve.lanes|=e,El|=e,t)}function Mc(e,t,l,n,a){var i=G.p;G.p=i!==0&&8>i?i:8;var c=y.T,d={};y.T=d,wu(e,!1,t,l);try{var E=a(),R=y.S;if(R!==null&&R(d,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var Y=Jh(E,n);ma(e,t,Y,xt(e))}else ma(e,t,n,xt(e))}catch(F){ma(e,t,{then:function(){},status:"rejected",reason:F},xt())}finally{G.p=i,y.T=c}}function lp(){}function Eu(e,t,l,n){if(e.tag!==5)throw Error(o(476));var a=Lc(e).queue;Mc(e,a,t,K,l===null?lp:function(){return Uc(e),l(n)})}function Lc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Uc(e){var t=Lc(e).next.queue;ma(e,t,{},xt())}function Nu(){return at(La)}function Bc(){return Fe().memoizedState}function Hc(){return Fe().memoizedState}function np(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=xt();e=gl(l);var n=hl(t,e,l);n!==null&&(St(n,t,l),da(n,t,l)),t={cache:Pr()},e.payload=t;return}t=t.return}}function ap(e,t,l){var n=xt();l={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},wi(e)?Gc(t,l):(l=Zr(e,t,l,n),l!==null&&(St(l,e,n),Yc(l,t,n)))}function qc(e,t,l){var n=xt();ma(e,t,l,n)}function ma(e,t,l,n){var a={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(wi(e))Gc(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(a.hasEagerState=!0,a.eagerState=d,pt(d,c))return ui(e,t,a,0),Le===null&&ri(),!1}catch{}finally{}if(l=Zr(e,t,a,n),l!==null)return St(l,e,n),Yc(l,t,n),!0}return!1}function wu(e,t,l,n){if(n={lane:2,revertLane:ls(),action:n,hasEagerState:!1,eagerState:null,next:null},wi(e)){if(t)throw Error(o(479))}else t=Zr(e,l,n,2),t!==null&&St(t,e,2)}function wi(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Gc(e,t){An=mi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Yc(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ks(e,l)}}var Ai={readContext:at,use:xi,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},Zc={readContext:at,use:xi,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Tc,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ni(4194308,4,kc.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var l=ot();t=t===void 0?null:t;var n=e();if(Kl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=ot();if(l!==void 0){var a=l(t);if(Kl){sl(!0);try{l(t)}finally{sl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=ap.bind(null,ve,e),[n.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=mu(e);var t=e.queue,l=qc.bind(null,ve,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:xu,useDeferredValue:function(e,t){var l=ot();return Su(l,e,t)},useTransition:function(){var e=mu(!1);return e=Mc.bind(null,ve,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=ve,a=ot();if(je){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Le===null)throw Error(o(349));(we&124)!==0||cc(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,Tc(dc.bind(null,n,i,e),[e]),n.flags|=2048,_n(9,Ei(),fc.bind(null,n,i,l,t),null),l},useId:function(){var e=ot(),t=Le.identifierPrefix;if(je){var l=It,n=Kt;l=(n&~(1<<32-ht(n)-1)).toString(32)+l,t="«"+t+"R"+l,l=vi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Wh++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Nu,useFormState:Sc,useActionState:Sc,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=wu.bind(null,ve,!0,l),l.dispatch=t,[e,t]},useMemoCache:pu,useCacheRefresh:function(){return ot().memoizedState=np.bind(null,ve)}},Vc={readContext:at,use:xi,useCallback:Dc,useContext:at,useEffect:_c,useImperativeHandle:Oc,useInsertionEffect:jc,useLayoutEffect:Cc,useMemo:Rc,useReducer:Si,useRef:Ac,useState:function(){return Si(Pt)},useDebugValue:xu,useDeferredValue:function(e,t){var l=Fe();return zc(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Si(Pt)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:ba(e),t]},useSyncExternalStore:oc,useId:Bc,useHostTransitionStatus:Nu,useFormState:Ec,useActionState:Ec,useOptimistic:function(e,t){var l=Fe();return pc(l,Oe,e,t)},useMemoCache:pu,useCacheRefresh:Hc},ip={readContext:at,use:xi,useCallback:Dc,useContext:at,useEffect:_c,useImperativeHandle:Oc,useInsertionEffect:jc,useLayoutEffect:Cc,useMemo:Rc,useReducer:yu,useRef:Ac,useState:function(){return yu(Pt)},useDebugValue:xu,useDeferredValue:function(e,t){var l=Fe();return Oe===null?Su(l,e,t):zc(l,Oe.memoizedState,e,t)},useTransition:function(){var e=yu(Pt)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:ba(e),t]},useSyncExternalStore:oc,useId:Bc,useHostTransitionStatus:Nu,useFormState:wc,useActionState:wc,useOptimistic:function(e,t){var l=Fe();return Oe!==null?pc(l,Oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:pu,useCacheRefresh:Hc},jn=null,va=0;function Ti(e){var t=va;return va+=1,jn===null&&(jn=[]),tc(jn,e,t)}function xa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _i(e,t){throw t.$$typeof===b?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xc(e){var t=e._init;return t(e._payload)}function Fc(e){function t(O,C){if(e){var D=O.deletions;D===null?(O.deletions=[C],O.flags|=16):D.push(C)}}function l(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function n(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function a(O,C){return O=$t(O,C),O.index=0,O.sibling=null,O}function i(O,C,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<C?(O.flags|=67108866,C):D):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function c(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function d(O,C,D,V){return C===null||C.tag!==6?(C=Xr(D,O.mode,V),C.return=O,C):(C=a(C,D),C.return=O,C)}function E(O,C,D,V){var ae=D.type;return ae===x?Y(O,C,D.props.children,V,D.key):C!==null&&(C.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===se&&Xc(ae)===C.type)?(C=a(C,D.props),xa(C,D),C.return=O,C):(C=oi(D.type,D.key,D.props,null,O.mode,V),xa(C,D),C.return=O,C)}function R(O,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Fr(D,O.mode,V),C.return=O,C):(C=a(C,D.children||[]),C.return=O,C)}function Y(O,C,D,V,ae){return C===null||C.tag!==7?(C=Gl(D,O.mode,V,ae),C.return=O,C):(C=a(C,D),C.return=O,C)}function F(O,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Xr(""+C,O.mode,D),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case k:return D=oi(C.type,C.key,C.props,null,O.mode,D),xa(D,C),D.return=O,D;case q:return C=Fr(C,O.mode,D),C.return=O,C;case se:var V=C._init;return C=V(C._payload),F(O,C,D)}if(J(C)||Q(C))return C=Gl(C,O.mode,D,null),C.return=O,C;if(typeof C.then=="function")return F(O,Ti(C),D);if(C.$$typeof===H)return F(O,gi(O,C),D);_i(O,C)}return null}function M(O,C,D,V){var ae=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ae!==null?null:d(O,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case k:return D.key===ae?E(O,C,D,V):null;case q:return D.key===ae?R(O,C,D,V):null;case se:return ae=D._init,D=ae(D._payload),M(O,C,D,V)}if(J(D)||Q(D))return ae!==null?null:Y(O,C,D,V,null);if(typeof D.then=="function")return M(O,C,Ti(D),V);if(D.$$typeof===H)return M(O,C,gi(O,D),V);_i(O,D)}return null}function B(O,C,D,V,ae){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return O=O.get(D)||null,d(C,O,""+V,ae);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case k:return O=O.get(V.key===null?D:V.key)||null,E(C,O,V,ae);case q:return O=O.get(V.key===null?D:V.key)||null,R(C,O,V,ae);case se:var xe=V._init;return V=xe(V._payload),B(O,C,D,V,ae)}if(J(V)||Q(V))return O=O.get(D)||null,Y(C,O,V,ae,null);if(typeof V.then=="function")return B(O,C,D,Ti(V),ae);if(V.$$typeof===H)return B(O,C,D,gi(C,V),ae);_i(C,V)}return null}function he(O,C,D,V){for(var ae=null,xe=null,ue=C,de=C=0,We=null;ue!==null&&de<D.length;de++){ue.index>de?(We=ue,ue=null):We=ue.sibling;var _e=M(O,ue,D[de],V);if(_e===null){ue===null&&(ue=We);break}e&&ue&&_e.alternate===null&&t(O,ue),C=i(_e,C,de),xe===null?ae=_e:xe.sibling=_e,xe=_e,ue=We}if(de===D.length)return l(O,ue),je&&Zl(O,de),ae;if(ue===null){for(;de<D.length;de++)ue=F(O,D[de],V),ue!==null&&(C=i(ue,C,de),xe===null?ae=ue:xe.sibling=ue,xe=ue);return je&&Zl(O,de),ae}for(ue=n(ue);de<D.length;de++)We=B(ue,O,de,D[de],V),We!==null&&(e&&We.alternate!==null&&ue.delete(We.key===null?de:We.key),C=i(We,C,de),xe===null?ae=We:xe.sibling=We,xe=We);return e&&ue.forEach(function(Ol){return t(O,Ol)}),je&&Zl(O,de),ae}function oe(O,C,D,V){if(D==null)throw Error(o(151));for(var ae=null,xe=null,ue=C,de=C=0,We=null,_e=D.next();ue!==null&&!_e.done;de++,_e=D.next()){ue.index>de?(We=ue,ue=null):We=ue.sibling;var Ol=M(O,ue,_e.value,V);if(Ol===null){ue===null&&(ue=We);break}e&&ue&&Ol.alternate===null&&t(O,ue),C=i(Ol,C,de),xe===null?ae=Ol:xe.sibling=Ol,xe=Ol,ue=We}if(_e.done)return l(O,ue),je&&Zl(O,de),ae;if(ue===null){for(;!_e.done;de++,_e=D.next())_e=F(O,_e.value,V),_e!==null&&(C=i(_e,C,de),xe===null?ae=_e:xe.sibling=_e,xe=_e);return je&&Zl(O,de),ae}for(ue=n(ue);!_e.done;de++,_e=D.next())_e=B(ue,O,de,_e.value,V),_e!==null&&(e&&_e.alternate!==null&&ue.delete(_e.key===null?de:_e.key),C=i(_e,C,de),xe===null?ae=_e:xe.sibling=_e,xe=_e);return e&&ue.forEach(function(rb){return t(O,rb)}),je&&Zl(O,de),ae}function Re(O,C,D,V){if(typeof D=="object"&&D!==null&&D.type===x&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case k:e:{for(var ae=D.key;C!==null;){if(C.key===ae){if(ae=D.type,ae===x){if(C.tag===7){l(O,C.sibling),V=a(C,D.props.children),V.return=O,O=V;break e}}else if(C.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===se&&Xc(ae)===C.type){l(O,C.sibling),V=a(C,D.props),xa(V,D),V.return=O,O=V;break e}l(O,C);break}else t(O,C);C=C.sibling}D.type===x?(V=Gl(D.props.children,O.mode,V,D.key),V.return=O,O=V):(V=oi(D.type,D.key,D.props,null,O.mode,V),xa(V,D),V.return=O,O=V)}return c(O);case q:e:{for(ae=D.key;C!==null;){if(C.key===ae)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){l(O,C.sibling),V=a(C,D.children||[]),V.return=O,O=V;break e}else{l(O,C);break}else t(O,C);C=C.sibling}V=Fr(D,O.mode,V),V.return=O,O=V}return c(O);case se:return ae=D._init,D=ae(D._payload),Re(O,C,D,V)}if(J(D))return he(O,C,D,V);if(Q(D)){if(ae=Q(D),typeof ae!="function")throw Error(o(150));return D=ae.call(D),oe(O,C,D,V)}if(typeof D.then=="function")return Re(O,C,Ti(D),V);if(D.$$typeof===H)return Re(O,C,gi(O,D),V);_i(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(l(O,C.sibling),V=a(C,D),V.return=O,O=V):(l(O,C),V=Xr(D,O.mode,V),V.return=O,O=V),c(O)):l(O,C)}return function(O,C,D,V){try{va=0;var ae=Re(O,C,D,V);return jn=null,ae}catch(ue){if(ue===ca||ue===pi)throw ue;var xe=bt(29,ue,null,O.mode);return xe.lanes=V,xe.return=O,xe}finally{}}}var Cn=Fc(!0),Qc=Fc(!1),Dt=U(null),qt=null;function bl(e){var t=e.alternate;I($e,$e.current&1),I(Dt,e),qt===null&&(t===null||wn.current!==null||t.memoizedState!==null)&&(qt=e)}function $c(e){if(e.tag===22){if(I($e,$e.current),I(Dt,e),qt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(qt=e)}}else yl()}function yl(){I($e,$e.current),I(Dt,Dt.current)}function el(e){$(Dt),qt===e&&(qt=null),$($e)}var $e=U(0);function ji(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||hs(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Au(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:w({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Tu={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=xt(),a=gl(n);a.payload=t,l!=null&&(a.callback=l),t=hl(e,a,n),t!==null&&(St(t,e,n),da(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=xt(),a=gl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=hl(e,a,n),t!==null&&(St(t,e,n),da(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=xt(),n=gl(l);n.tag=2,t!=null&&(n.callback=t),t=hl(e,n,l),t!==null&&(St(t,e,l),da(t,e,l))}};function Kc(e,t,l,n,a,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,c):t.prototype&&t.prototype.isPureReactComponent?!la(l,n)||!la(a,i):!0}function Ic(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Tu.enqueueReplaceState(t,t.state,null)}function Il(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=w({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}var Ci=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Jc(e){Ci(e)}function Wc(e){console.error(e)}function Pc(e){Ci(e)}function ki(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function ef(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function _u(e,t,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){ki(e,t)},l}function tf(e){return e=gl(e),e.tag=3,e}function lf(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){ef(t,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){ef(t,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function rp(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&ua(t,l,a,!0),l=Dt.current,l!==null){switch(l.tag){case 13:return qt===null?Ju():l.alternate===null&&Ye===0&&(Ye=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===lu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Pu(e,n,a)),!1;case 22:return l.flags|=65536,n===lu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Pu(e,n,a)),!1}throw Error(o(435,l.tag))}return Pu(e,n,a),Ju(),!1}if(je)return t=Dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Kr&&(e=Error(o(422),{cause:n}),ra(jt(e,l)))):(n!==Kr&&(t=Error(o(423),{cause:n}),ra(jt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=jt(n,l),a=_u(e.stateNode,n,a),iu(e,a),Ye!==4&&(Ye=2)),!1;var i=Error(o(520),{cause:n});if(i=jt(i,l),_a===null?_a=[i]:_a.push(i),Ye!==4&&(Ye=2),t===null)return!0;n=jt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=_u(l.stateNode,n,e),iu(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Nl===null||!Nl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=tf(a),lf(a,e,l,n),iu(l,a),!1}l=l.return}while(l!==null);return!1}var nf=Error(o(461)),Ie=!1;function Pe(e,t,l,n){t.child=e===null?Qc(t,null,l,n):Cn(t,e.child,l,n)}function af(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var c={};for(var d in n)d!=="ref"&&(c[d]=n[d])}else c=n;return Ql(t),n=cu(e,t,l,c,i,a),d=fu(),e!==null&&!Ie?(du(e,t,a),tl(e,t,a)):(je&&d&&Qr(t),t.flags|=1,Pe(e,t,n,a),t.child)}function rf(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!Vr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,uf(e,t,i,n,a)):(e=oi(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Mu(e,a)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:la,l(c,n)&&e.ref===t.ref)return tl(e,t,a)}return t.flags|=1,e=$t(i,n),e.ref=t.ref,e.return=t,t.child=e}function uf(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(la(i,n)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=n=i,Mu(e,a))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,tl(e,t,a)}return ju(e,t,l,n,a)}function sf(e,t,l){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden"){if((t.flags&128)!==0){if(n=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;t.childLanes=i&~n}else t.childLanes=0,t.child=null;return of(e,t,n,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hi(t,i!==null?i.cachePool:null),i!==null?rc(t,i):uu(),$c(t);else return t.lanes=t.childLanes=536870912,of(e,t,i!==null?i.baseLanes|l:l,l)}else i!==null?(hi(t,i.cachePool),rc(t,i),yl(),t.memoizedState=null):(e!==null&&hi(t,null),uu(),yl());return Pe(e,t,a,l),t.child}function of(e,t,l,n){var a=tu();return a=a===null?null:{parent:Qe._currentValue,pool:a},t.memoizedState={baseLanes:l,cachePool:a},e!==null&&hi(t,null),uu(),$c(t),e!==null&&ua(e,t,n,!0),null}function Oi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function ju(e,t,l,n,a){return Ql(t),l=cu(e,t,l,n,void 0,a),n=fu(),e!==null&&!Ie?(du(e,t,a),tl(e,t,a)):(je&&n&&Qr(t),t.flags|=1,Pe(e,t,l,a),t.child)}function cf(e,t,l,n,a,i){return Ql(t),t.updateQueue=null,l=sc(t,n,l,a),uc(e),n=fu(),e!==null&&!Ie?(du(e,t,i),tl(e,t,i)):(je&&n&&Qr(t),t.flags|=1,Pe(e,t,l,i),t.child)}function ff(e,t,l,n,a){if(Ql(t),t.stateNode===null){var i=vn,c=l.contextType;typeof c=="object"&&c!==null&&(i=at(c)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Tu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},nu(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?at(c):vn,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Au(t,l,c,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Tu.enqueueReplaceState(i,i.state,null),ha(t,n,i,a),ga(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,E=Il(l,d);i.props=E;var R=i.context,Y=l.contextType;c=vn,typeof Y=="object"&&Y!==null&&(c=at(Y));var F=l.getDerivedStateFromProps;Y=typeof F=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,Y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||R!==c)&&Ic(t,i,n,c),dl=!1;var M=t.memoizedState;i.state=M,ha(t,n,i,a),ga(),R=t.memoizedState,d||M!==R||dl?(typeof F=="function"&&(Au(t,l,F,n),R=t.memoizedState),(E=dl||Kc(t,l,E,n,M,R,c))?(Y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=R),i.props=n,i.state=R,i.context=c,n=E):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,au(e,t),c=t.memoizedProps,Y=Il(l,c),i.props=Y,F=t.pendingProps,M=i.context,R=l.contextType,E=vn,typeof R=="object"&&R!==null&&(E=at(R)),d=l.getDerivedStateFromProps,(R=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==F||M!==E)&&Ic(t,i,n,E),dl=!1,M=t.memoizedState,i.state=M,ha(t,n,i,a),ga();var B=t.memoizedState;c!==F||M!==B||dl||e!==null&&e.dependencies!==null&&di(e.dependencies)?(typeof d=="function"&&(Au(t,l,d,n),B=t.memoizedState),(Y=dl||Kc(t,l,Y,n,M,B,E)||e!==null&&e.dependencies!==null&&di(e.dependencies))?(R||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,B,E),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,B,E)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=B),i.props=n,i.state=B,i.context=E,n=Y):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Oi(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Cn(t,e.child,null,a),t.child=Cn(t,null,l,a)):Pe(e,t,l,a),t.memoizedState=i.state,e=t.child):e=tl(e,t,a),e}function df(e,t,l,n){return ia(),t.flags|=256,Pe(e,t,l,n),t.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ku(e){return{baseLanes:e,cachePool:Wo()}}function Ou(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Rt),e}function gf(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),c&&(a=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(a?bl(t):yl(),je){var d=Ge,E;if(E=d){e:{for(E=d,d=Ht;E.nodeType!==8;){if(!d){d=null;break e}if(E=Ut(E.nextSibling),E===null){d=null;break e}}d=E}d!==null?(t.memoizedState={dehydrated:d,treeContext:Yl!==null?{id:Kt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},E=bt(18,null,null,0),E.stateNode=d,E.return=t,t.child=E,rt=t,Ge=null,E=!0):E=!1}E||Xl(t)}if(d=t.memoizedState,d!==null&&(d=d.dehydrated,d!==null))return hs(d)?t.lanes=32:t.lanes=536870912,null;el(t)}return d=n.children,n=n.fallback,a?(yl(),a=t.mode,d=Di({mode:"hidden",children:d},a),n=Gl(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,a=t.child,a.memoizedState=ku(l),a.childLanes=Ou(e,c,l),t.memoizedState=Cu,n):(bl(t),Du(t,d))}if(E=e.memoizedState,E!==null&&(d=E.dehydrated,d!==null)){if(i)t.flags&256?(bl(t),t.flags&=-257,t=Ru(e,t,l)):t.memoizedState!==null?(yl(),t.child=e.child,t.flags|=128,t=null):(yl(),a=n.fallback,d=t.mode,n=Di({mode:"visible",children:n.children},d),a=Gl(a,d,l,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,Cn(t,e.child,null,l),n=t.child,n.memoizedState=ku(l),n.childLanes=Ou(e,c,l),t.memoizedState=Cu,t=a);else if(bl(t),hs(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var R=c.dgst;c=R,n=Error(o(419)),n.stack="",n.digest=c,ra({value:n,source:null,stack:null}),t=Ru(e,t,l)}else if(Ie||ua(e,t,l,!1),c=(l&e.childLanes)!==0,Ie||c){if(c=Le,c!==null&&(n=l&-l,n=(n&42)!==0?1:pr(n),n=(n&(c.suspendedLanes|l))!==0?0:n,n!==0&&n!==E.retryLane))throw E.retryLane=n,mn(e,n),St(c,e,n),nf;d.data==="$?"||Ju(),t=Ru(e,t,l)}else d.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ge=Ut(d.nextSibling),rt=t,je=!0,Vl=null,Ht=!1,e!==null&&(kt[Ot++]=Kt,kt[Ot++]=It,kt[Ot++]=Yl,Kt=e.id,It=e.overflow,Yl=t),t=Du(t,n.children),t.flags|=4096);return t}return a?(yl(),a=n.fallback,d=t.mode,E=e.child,R=E.sibling,n=$t(E,{mode:"hidden",children:n.children}),n.subtreeFlags=E.subtreeFlags&65011712,R!==null?a=$t(R,a):(a=Gl(a,d,l,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,d=e.child.memoizedState,d===null?d=ku(l):(E=d.cachePool,E!==null?(R=Qe._currentValue,E=E.parent!==R?{parent:R,pool:R}:E):E=Wo(),d={baseLanes:d.baseLanes|l,cachePool:E}),a.memoizedState=d,a.childLanes=Ou(e,c,l),t.memoizedState=Cu,n):(bl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Du(e,t){return t=Di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Di(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ru(e,t,l){return Cn(t,e.child,null,l),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hf(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Jr(e.return,t,l)}function zu(e,t,l,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=l,i.tailMode=a)}function pf(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(Pe(e,t,n.children,l),n=$e.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hf(e,l,t);else if(e.tag===19)hf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}switch(I($e,n),a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&ji(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),zu(t,!1,a,l,i);break;case"backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&ji(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}zu(t,!0,l,null,i);break;case"together":zu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),El|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ua(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Mu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&di(e)))}function up(e,t,l){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),fl(t,Qe,e.memoizedState.cache),ia();break;case 27:case 5:qe(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:fl(t,t.type,t.memoizedProps.value);break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(bl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?gf(e,t,l):(bl(t),e=tl(e,t,l),e!==null?e.sibling:null);bl(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(ua(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return pf(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),I($e,$e.current),n)break;return null;case 22:case 23:return t.lanes=0,sf(e,t,l);case 24:fl(t,Qe,e.memoizedState.cache)}return tl(e,t,l)}function bf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Mu(e,l)&&(t.flags&128)===0)return Ie=!1,up(e,t,l);Ie=(e.flags&131072)!==0}else Ie=!1,je&&(t.flags&1048576)!==0&&Xo(t,fi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var n=t.elementType,a=n._init;if(n=a(n._payload),t.type=n,typeof n=="function")Vr(n)?(e=Il(n,e),t.tag=1,t=ff(null,t,n,e,l)):(t.tag=0,t=ju(null,t,n,e,l));else{if(n!=null){if(a=n.$$typeof,a===z){t.tag=11,t=af(null,t,n,e,l);break e}else if(a===te){t.tag=14,t=rf(null,t,n,e,l);break e}}throw t=pe(n)||n,Error(o(306,t,""))}}return t;case 0:return ju(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=Il(n,t.pendingProps),ff(e,t,n,a,l);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,au(e,t),ha(t,n,null,l);var c=t.memoizedState;if(n=c.cache,fl(t,Qe,n),n!==i.cache&&Wr(t,[Qe],l,!0),ga(),n=c.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=df(e,t,n,l);break e}else if(n!==a){a=jt(Error(o(424)),t),ra(a),t=df(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=Ut(e.firstChild),rt=t,je=!0,Vl=null,Ht=!0,l=Qc(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ia(),n===a){t=tl(e,t,l);break e}Pe(e,t,n,l)}t=t.child}return t;case 26:return Oi(e,t),e===null?(l=xd(t.type,null,t.pendingProps,null))?t.memoizedState=l:je||(l=t.type,e=t.pendingProps,n=Fi(re.current).createElement(l),n[nt]=t,n[ut]=e,tt(n,l,e),Ke(n),t.stateNode=n):t.memoizedState=xd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qe(t),e===null&&je&&(n=t.stateNode=yd(t.type,t.pendingProps,re.current),rt=t,Ht=!0,a=Ge,Tl(t.type)?(ps=a,Ge=Ut(n.firstChild)):Ge=a),Pe(e,t,t.pendingProps.children,l),Oi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((a=n=Ge)&&(n=Mp(n,t.type,t.pendingProps,Ht),n!==null?(t.stateNode=n,rt=t,Ge=Ut(n.firstChild),Ht=!1,a=!0):a=!1),a||Xl(t)),qe(t),a=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,n=i.children,fs(a,i)?n=null:c!==null&&fs(a,c)&&(t.flags|=32),t.memoizedState!==null&&(a=cu(e,t,Ph,null,null,l),La._currentValue=a),Oi(e,t),Pe(e,t,n,l),t.child;case 6:return e===null&&je&&((e=l=Ge)&&(l=Lp(l,t.pendingProps,Ht),l!==null?(t.stateNode=l,rt=t,Ge=null,e=!0):e=!1),e||Xl(t)),null;case 13:return gf(e,t,l);case 4:return le(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Cn(t,null,n,l):Pe(e,t,n,l),t.child;case 11:return af(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,fl(t,t.type,n.value),Pe(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Ql(t),a=at(a),n=n(a),t.flags|=1,Pe(e,t,n,l),t.child;case 14:return rf(e,t,t.type,t.pendingProps,l);case 15:return uf(e,t,t.type,t.pendingProps,l);case 19:return pf(e,t,l);case 31:return n=t.pendingProps,l=t.mode,n={mode:n.mode,children:n.children},e===null?(l=Di(n,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=$t(e.child,n),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return sf(e,t,l);case 24:return Ql(t),n=at(Qe),e===null?(a=tu(),a===null&&(a=Le,i=Pr(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},nu(t),fl(t,Qe,a)):((e.lanes&l)!==0&&(au(e,t),ha(t,null,null,l),ga()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),fl(t,Qe,n)):(n=i.cache,fl(t,Qe,n),n!==a.cache&&Wr(t,[Qe],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ll(e){e.flags|=4}function yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ad(t)){if(t=Dt.current,t!==null&&((we&4194048)===we?qt!==null:(we&62914560)!==we&&(we&536870912)===0||t!==qt))throw fa=lu,Po;e.flags|=8192}}function Ri(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qs():536870912,e.lanes|=t,Rn|=t)}function Sa(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function sp(e,t,l){var n=t.pendingProps;switch($r(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wt(Qe),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(aa(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$o())),He(t),null;case 26:return l=t.memoizedState,e===null?(ll(t),l!==null?(He(t),yf(t,l)):(He(t),t.flags&=-16777217)):l?l!==e.memoizedState?(ll(t),He(t),yf(t,l)):(He(t),t.flags&=-16777217):(e.memoizedProps!==n&&ll(t),He(t),t.flags&=-16777217),null;case 27:tn(t),l=re.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ll(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=ne.current,aa(t)?Fo(t):(e=yd(a,n,l),t.stateNode=e,ll(t))}return He(t),null;case 5:if(tn(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ll(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(e=ne.current,aa(t))Fo(t);else{switch(a=Fi(re.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof n.is=="string"?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e=typeof n.is=="string"?a.createElement(l,{is:n.is}):a.createElement(l)}}e[nt]=t,e[ut]=n;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(tt(e,l,n),l){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&ll(t)}}return He(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ll(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,aa(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=rt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||cd(e.nodeValue,l)),e||Xl(t)}else e=Fi(e).createTextNode(n),e[nt]=t,t.stateNode=e}return He(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=aa(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[nt]=t}else ia(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),a=!1}else a=$o(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(el(t),t):(el(t),null)}if(el(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=n!==null,e=e!==null&&e.memoizedState!==null,l){n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool);var i=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),He(t),null;case 4:return Ae(),e===null&&rs(t.stateNode.containerInfo),He(t),null;case 10:return Wt(t.type),He(t),null;case 19:if($($e),a=t.memoizedState,a===null)return He(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Sa(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ji(e),i!==null){for(t.flags|=128,Sa(a,!1),e=i.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Vo(l,e),l=l.sibling;return I($e,$e.current&1|2),t.child}e=e.sibling}a.tail!==null&&At()>Li&&(t.flags|=128,n=!0,Sa(a,!1),t.lanes=4194304)}else{if(!n)if(e=ji(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),Sa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!je)return He(t),null}else 2*At()-a.renderingStartTime>Li&&l!==536870912&&(t.flags|=128,n=!0,Sa(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=At(),t.sibling=null,e=$e.current,I($e,n?e&1|2:e&1),t):(He(t),null);case 22:case 23:return el(t),su(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&$($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(Qe),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function op(e,t){switch($r(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Qe),Ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return tn(t),null;case 13:if(el(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $($e),null;case 4:return Ae(),null;case 10:return Wt(t.type),null;case 22:case 23:return el(t),su(),e!==null&&$($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Qe),null;case 25:return null;default:return null}}function mf(e,t){switch($r(t),t.tag){case 3:Wt(Qe),Ae();break;case 26:case 27:case 5:tn(t);break;case 4:Ae();break;case 13:el(t);break;case 19:$($e);break;case 10:Wt(t.type);break;case 22:case 23:el(t),su(),e!==null&&$($l);break;case 24:Wt(Qe)}}function Ea(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,c=l.inst;n=i(),c.destroy=n}l=l.next}while(l!==a)}}catch(d){Me(t,t.return,d)}}function ml(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var c=n.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,a=t;var E=l,R=d;try{R()}catch(Y){Me(a,E,Y)}}}n=n.next}while(n!==i)}}catch(Y){Me(t,t.return,Y)}}function vf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ic(t,l)}catch(n){Me(e,e.return,n)}}}function xf(e,t,l){l.props=Il(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Me(e,t,n)}}function Na(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Me(e,t,a)}}function Gt(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Me(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Me(e,t,a)}else l.current=null}function Sf(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Me(e,e.return,a)}}function Lu(e,t,l){try{var n=e.stateNode;kp(n,e.type,l,t),n[ut]=t}catch(a){Me(e,e.return,a)}}function Ef(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ef(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bu(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Xi));else if(n!==4&&(n===27&&Tl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Bu(e,t,l),e=e.sibling;e!==null;)Bu(e,t,l),e=e.sibling}function zi(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Tl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(zi(e,t,l),e=e.sibling;e!==null;)zi(e,t,l),e=e.sibling}function Nf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);tt(t,n,l),t[nt]=e,t[ut]=l}catch(i){Me(e,e.return,i)}}var nl=!1,Ve=!1,Hu=!1,wf=typeof WeakSet=="function"?WeakSet:Set,Je=null;function cp(e,t){if(e=e.containerInfo,os=Wi,e=zo(e),Ur(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,E=-1,R=0,Y=0,F=e,M=null;t:for(;;){for(var B;F!==l||a!==0&&F.nodeType!==3||(d=c+a),F!==i||n!==0&&F.nodeType!==3||(E=c+n),F.nodeType===3&&(c+=F.nodeValue.length),(B=F.firstChild)!==null;)M=F,F=B;for(;;){if(F===e)break t;if(M===l&&++R===a&&(d=c),M===i&&++Y===n&&(E=c),(B=F.nextSibling)!==null)break;F=M,M=F.parentNode}F=B}l=d===-1||E===-1?null:{start:d,end:E}}else l=null}l=l||{start:0,end:0}}else l=null;for(cs={focusedElem:e,selectionRange:l},Wi=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var he=Il(l.type,a,l.elementType===l.type);e=n.getSnapshotBeforeUpdate(he,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Me(l,l.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)gs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function Af(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:vl(e,l),n&4&&Ea(5,l);break;case 1:if(vl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Me(l,l.return,c)}else{var a=Il(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Me(l,l.return,c)}}n&64&&vf(l),n&512&&Na(l,l.return);break;case 3:if(vl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ic(e,t)}catch(c){Me(l,l.return,c)}}break;case 27:t===null&&n&4&&Nf(l);case 26:case 5:vl(e,l),t===null&&n&4&&Sf(l),n&512&&Na(l,l.return);break;case 12:vl(e,l);break;case 13:vl(e,l),n&4&&jf(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=vp.bind(null,l),Up(e,l))));break;case 22:if(n=l.memoizedState!==null||nl,!n){t=t!==null&&t.memoizedState!==null||Ve,a=nl;var i=Ve;nl=n,(Ve=t)&&!i?xl(e,l,(l.subtreeFlags&8772)!==0):vl(e,l),nl=a,Ve=i}break;case 30:break;default:vl(e,l)}}function Tf(e){var t=e.alternate;t!==null&&(e.alternate=null,Tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,ct=!1;function al(e,t,l){for(l=l.child;l!==null;)_f(e,t,l),l=l.sibling}function _f(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Vn,l)}catch{}switch(l.tag){case 26:Ve||Gt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||Gt(l,t);var n=Ue,a=ct;Tl(l.type)&&(Ue=l.stateNode,ct=!1),al(e,t,l),Da(l.stateNode),Ue=n,ct=a;break;case 5:Ve||Gt(l,t);case 6:if(n=Ue,a=ct,Ue=null,al(e,t,l),Ue=n,ct=a,Ue!==null)if(ct)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(i){Me(l,t,i)}else try{Ue.removeChild(l.stateNode)}catch(i){Me(l,t,i)}break;case 18:Ue!==null&&(ct?(e=Ue,pd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qa(e)):pd(Ue,l.stateNode));break;case 4:n=Ue,a=ct,Ue=l.stateNode.containerInfo,ct=!0,al(e,t,l),Ue=n,ct=a;break;case 0:case 11:case 14:case 15:Ve||ml(2,l,t),Ve||ml(4,l,t),al(e,t,l);break;case 1:Ve||(Gt(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&xf(l,t,n)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Ve=(n=Ve)||l.memoizedState!==null,al(e,t,l),Ve=n;break;default:al(e,t,l)}}function jf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qa(e)}catch(l){Me(t,t.return,l)}}function fp(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wf),t;default:throw Error(o(435,e.tag))}}function qu(e,t){var l=fp(e);t.forEach(function(n){var a=xp.bind(null,e,n);l.has(n)||(l.add(n),n.then(a,a))})}function yt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Tl(d.type)){Ue=d.stateNode,ct=!1;break e}break;case 5:Ue=d.stateNode,ct=!1;break e;case 3:case 4:Ue=d.stateNode.containerInfo,ct=!0;break e}d=d.return}if(Ue===null)throw Error(o(160));_f(i,c,a),Ue=null,ct=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Cf(t,e),t=t.sibling}var Lt=null;function Cf(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),mt(e),n&4&&(ml(3,e,e.return),Ea(3,e),ml(5,e,e.return));break;case 1:yt(t,e),mt(e),n&512&&(Ve||l===null||Gt(l,l.return)),n&64&&nl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Lt;if(yt(t,e),mt(e),n&512&&(Ve||l===null||Gt(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Qn]||i[nt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),tt(i,n,l),i[nt]=e,Ke(i),n=i;break e;case"link":var c=Nd("link","href",a).get(n+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=a.createElement(n),tt(i,n,l),a.head.appendChild(i);break;case"meta":if(c=Nd("meta","content",a).get(n+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=a.createElement(n),tt(i,n,l),a.head.appendChild(i);break;default:throw Error(o(468,n))}i[nt]=e,Ke(i),n=i}e.stateNode=n}else wd(a,e.type,e.stateNode);else e.stateNode=Ed(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?wd(a,e.type,e.stateNode):Ed(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Lu(e,e.memoizedProps,l.memoizedProps)}break;case 27:yt(t,e),mt(e),n&512&&(Ve||l===null||Gt(l,l.return)),l!==null&&n&4&&Lu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(yt(t,e),mt(e),n&512&&(Ve||l===null||Gt(l,l.return)),e.flags&32){a=e.stateNode;try{fn(a,"")}catch(B){Me(e,e.return,B)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,Lu(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Hu=!0);break;case 6:if(yt(t,e),mt(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(B){Me(e,e.return,B)}}break;case 3:if(Ki=null,a=Lt,Lt=Qi(t.containerInfo),yt(t,e),Lt=a,mt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{qa(t.containerInfo)}catch(B){Me(e,e.return,B)}Hu&&(Hu=!1,kf(e));break;case 4:n=Lt,Lt=Qi(e.stateNode.containerInfo),yt(t,e),mt(e),Lt=n;break;case 12:yt(t,e),mt(e);break;case 13:yt(t,e),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Fu=At()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qu(e,n)));break;case 22:a=e.memoizedState!==null;var E=l!==null&&l.memoizedState!==null,R=nl,Y=Ve;if(nl=R||a,Ve=Y||E,yt(t,e),Ve=Y,nl=R,mt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||E||nl||Ve||Jl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){E=l=t;try{if(i=E.stateNode,a)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=E.stateNode;var F=E.memoizedProps.style,M=F!=null&&F.hasOwnProperty("display")?F.display:null;d.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(B){Me(E,E.return,B)}}}else if(t.tag===6){if(l===null){E=t;try{E.stateNode.nodeValue=a?"":E.memoizedProps}catch(B){Me(E,E.return,B)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,qu(e,l))));break;case 19:yt(t,e),mt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,qu(e,n)));break;case 30:break;case 21:break;default:yt(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Ef(n)){l=n;break}n=n.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var a=l.stateNode,i=Uu(e);zi(e,i,a);break;case 5:var c=l.stateNode;l.flags&32&&(fn(c,""),l.flags&=-33);var d=Uu(e);zi(e,d,c);break;case 3:case 4:var E=l.stateNode.containerInfo,R=Uu(e);Bu(e,R,E);break;default:throw Error(o(161))}}catch(Y){Me(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Af(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ml(4,t,t.return),Jl(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&xf(t,t.return,l),Jl(t);break;case 27:Da(t.stateNode);case 26:case 5:Gt(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function xl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:xl(a,i,l),Ea(4,i);break;case 1:if(xl(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(R){Me(n,n.return,R)}if(n=i,a=n.updateQueue,a!==null){var d=n.stateNode;try{var E=a.shared.hiddenCallbacks;if(E!==null)for(a.shared.hiddenCallbacks=null,a=0;a<E.length;a++)ac(E[a],d)}catch(R){Me(n,n.return,R)}}l&&c&64&&vf(i),Na(i,i.return);break;case 27:Nf(i);case 26:case 5:xl(a,i,l),l&&n===null&&c&4&&Sf(i),Na(i,i.return);break;case 12:xl(a,i,l);break;case 13:xl(a,i,l),l&&c&4&&jf(a,i);break;case 22:i.memoizedState===null&&xl(a,i,l),Na(i,i.return);break;case 30:break;default:xl(a,i,l)}t=t.sibling}}function Gu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&sa(l))}function Yu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Yt(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Of(e,t,l,n),t=t.sibling}function Of(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,l,n),a&2048&&Ea(9,t);break;case 1:Yt(e,t,l,n);break;case 3:Yt(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(a&2048){Yt(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Me(t,t.return,E)}}else Yt(e,t,l,n);break;case 13:Yt(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Yt(e,t,l,n):wa(e,t):i._visibility&2?Yt(e,t,l,n):(i._visibility|=2,kn(e,t,l,n,(t.subtreeFlags&10256)!==0)),a&2048&&Gu(c,t);break;case 24:Yt(e,t,l,n),a&2048&&Yu(t.alternate,t);break;default:Yt(e,t,l,n)}}function kn(e,t,l,n,a){for(a=a&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,c=t,d=l,E=n,R=c.flags;switch(c.tag){case 0:case 11:case 15:kn(i,c,d,E,a),Ea(8,c);break;case 23:break;case 22:var Y=c.stateNode;c.memoizedState!==null?Y._visibility&2?kn(i,c,d,E,a):wa(i,c):(Y._visibility|=2,kn(i,c,d,E,a)),a&&R&2048&&Gu(c.alternate,c);break;case 24:kn(i,c,d,E,a),a&&R&2048&&Yu(c.alternate,c);break;default:kn(i,c,d,E,a)}t=t.sibling}}function wa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:wa(l,n),a&2048&&Gu(n.alternate,n);break;case 24:wa(l,n),a&2048&&Yu(n.alternate,n);break;default:wa(l,n)}t=t.sibling}}var Aa=8192;function On(e){if(e.subtreeFlags&Aa)for(e=e.child;e!==null;)Df(e),e=e.sibling}function Df(e){switch(e.tag){case 26:On(e),e.flags&Aa&&e.memoizedState!==null&&Ip(Lt,e.memoizedState,e.memoizedProps);break;case 5:On(e);break;case 3:case 4:var t=Lt;Lt=Qi(e.stateNode.containerInfo),On(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Aa,Aa=16777216,On(e),Aa=t):On(e));break;default:On(e)}}function Rf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ta(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Je=n,Mf(n,e)}Rf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zf(e),e=e.sibling}function zf(e){switch(e.tag){case 0:case 11:case 15:Ta(e),e.flags&2048&&ml(9,e,e.return);break;case 3:Ta(e);break;case 12:Ta(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mi(e)):Ta(e);break;default:Ta(e)}}function Mi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];Je=n,Mf(n,e)}Rf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ml(8,t,t.return),Mi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Mi(t));break;default:Mi(t)}e=e.sibling}}function Mf(e,t){for(;Je!==null;){var l=Je;switch(l.tag){case 0:case 11:case 15:ml(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:sa(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Je=n;else e:for(l=e;Je!==null;){n=Je;var a=n.sibling,i=n.return;if(Tf(n),n===l){Je=null;break e}if(a!==null){a.return=i,Je=a;break e}Je=i}}}var dp={getCacheForType:function(e){var t=at(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},gp=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Le=null,Se=null,we=0,ke=0,vt=null,Sl=!1,Dn=!1,Zu=!1,il=0,Ye=0,El=0,Wl=0,Vu=0,Rt=0,Rn=0,_a=null,ft=null,Xu=!1,Fu=0,Li=1/0,Ui=null,Nl=null,et=0,wl=null,zn=null,Mn=0,Qu=0,$u=null,Lf=null,ja=0,Ku=null;function xt(){if((Ce&2)!==0&&we!==0)return we&-we;if(y.T!==null){var e=En;return e!==0?e:ls()}return Is()}function Uf(){Rt===0&&(Rt=(we&536870912)===0||je?Fs():536870912);var e=Dt.current;return e!==null&&(e.flags|=32),Rt}function St(e,t,l){(e===Le&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(Ln(e,0),Al(e,we,Rt,!1)),Fn(e,l),((Ce&2)===0||e!==Le)&&(e===Le&&((Ce&2)===0&&(Wl|=l),Ye===4&&Al(e,we,Rt,!1)),Zt(e))}function Bf(e,t,l){if((Ce&6)!==0)throw Error(o(327));var n=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Xn(e,t),a=n?bp(e,t):Wu(e,t,!0),i=n;do{if(a===0){Dn&&!n&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!hp(l)){a=Wu(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;a=_a;var E=d.current.memoizedState.isDehydrated;if(E&&(Ln(d,c).flags|=256),c=Wu(d,c,!1),c!==2){if(Zu&&!E){d.errorRecoveryDisabledLanes|=i,Wl|=i,a=4;break e}i=ft,ft=a,i!==null&&(ft===null?ft=i:ft.push.apply(ft,i))}a=c}if(i=!1,a!==2)continue}}if(a===1){Ln(e,0),Al(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Al(n,t,Rt,!Sl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(a=Fu+300-At(),10<a)){if(Al(n,t,Rt,!Sl),$a(n,0,!0)!==0)break e;n.timeoutHandle=gd(Hf.bind(null,n,l,ft,Ui,Xu,t,Rt,Wl,Rn,Sl,i,2,-0,0),a);break e}Hf(n,l,ft,Ui,Xu,t,Rt,Wl,Rn,Sl,i,0,-0,0)}}break}while(!0);Zt(e)}function Hf(e,t,l,n,a,i,c,d,E,R,Y,F,M,B){if(e.timeoutHandle=-1,F=t.subtreeFlags,(F&8192||(F&16785408)===16785408)&&(Ma={stylesheets:null,count:0,unsuspend:Kp},Df(t),F=Jp(),F!==null)){e.cancelPendingCommit=F(Ff.bind(null,e,t,i,l,n,a,c,d,E,Y,1,M,B)),Al(e,i,c,!R);return}Ff(e,t,i,l,n,a,c,d,E)}function hp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!pt(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t,l,n){t&=~Vu,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-ht(a),c=1<<i;n[i]=-1,a&=~c}l!==0&&$s(e,l,t)}function Bi(){return(Ce&6)===0?(Ca(0),!1):!0}function Iu(){if(Se!==null){if(ke===0)var e=Se.return;else e=Se,Jt=Fl=null,gu(e),jn=null,va=0,e=Se;for(;e!==null;)mf(e.alternate,e),e=e.return;Se=null}}function Ln(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Dp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Iu(),Le=e,Se=l=$t(e.current,null),we=t,ke=0,vt=null,Sl=!1,Dn=Xn(e,t),Zu=!1,Rn=Rt=Vu=Wl=El=Ye=0,ft=_a=null,Xu=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-ht(n),i=1<<a;t|=e[a],n&=~i}return il=t,ri(),l}function qf(e,t){ve=null,y.H=Ai,t===ca||t===pi?(t=lc(),ke=3):t===Po?(t=lc(),ke=4):ke=t===nf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,Se===null&&(Ye=1,ki(e,jt(t,e.current)))}function Gf(){var e=y.H;return y.H=Ai,e===null?Ai:e}function Yf(){var e=y.A;return y.A=dp,e}function Ju(){Ye=4,Sl||(we&4194048)!==we&&Dt.current!==null||(Dn=!0),(El&134217727)===0&&(Wl&134217727)===0||Le===null||Al(Le,we,Rt,!1)}function Wu(e,t,l){var n=Ce;Ce|=2;var a=Gf(),i=Yf();(Le!==e||we!==t)&&(Ui=null,Ln(e,t)),t=!1;var c=Ye;e:do try{if(ke!==0&&Se!==null){var d=Se,E=vt;switch(ke){case 8:Iu(),c=6;break e;case 3:case 2:case 9:case 6:Dt.current===null&&(t=!0);var R=ke;if(ke=0,vt=null,Un(e,d,E,R),l&&Dn){c=0;break e}break;default:R=ke,ke=0,vt=null,Un(e,d,E,R)}}pp(),c=Ye;break}catch(Y){qf(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Jt=Fl=null,Ce=n,y.H=a,y.A=i,Se===null&&(Le=null,we=0,ri()),c}function pp(){for(;Se!==null;)Zf(Se)}function bp(e,t){var l=Ce;Ce|=2;var n=Gf(),a=Yf();Le!==e||we!==t?(Ui=null,Li=At()+500,Ln(e,t)):Dn=Xn(e,t);e:do try{if(ke!==0&&Se!==null){t=Se;var i=vt;t:switch(ke){case 1:ke=0,vt=null,Un(e,t,i,1);break;case 2:case 9:if(ec(i)){ke=0,vt=null,Vf(t);break}t=function(){ke!==2&&ke!==9||Le!==e||(ke=7),Zt(e)},i.then(t,t);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:ec(i)?(ke=0,vt=null,Vf(t)):(ke=0,vt=null,Un(e,t,i,7));break;case 5:var c=null;switch(Se.tag){case 26:c=Se.memoizedState;case 5:case 27:var d=Se;if(!c||Ad(c)){ke=0,vt=null;var E=d.sibling;if(E!==null)Se=E;else{var R=d.return;R!==null?(Se=R,Hi(R)):Se=null}break t}}ke=0,vt=null,Un(e,t,i,5);break;case 6:ke=0,vt=null,Un(e,t,i,6);break;case 8:Iu(),Ye=6;break e;default:throw Error(o(462))}}yp();break}catch(Y){qf(e,Y)}while(!0);return Jt=Fl=null,y.H=n,y.A=a,Ce=l,Se!==null?0:(Le=null,we=0,ri(),Ye)}function yp(){for(;Se!==null&&!Xa();)Zf(Se)}function Zf(e){var t=bf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Hi(e):Se=t}function Vf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=cf(l,t,t.pendingProps,t.type,void 0,we);break;case 11:t=cf(l,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:gu(t);default:mf(l,t),t=Se=Vo(t,il),t=bf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Hi(e):Se=t}function Un(e,t,l,n){Jt=Fl=null,gu(t),jn=null,va=0;var a=t.return;try{if(rp(e,a,t,l,we)){Ye=1,ki(e,jt(l,e.current)),Se=null;return}}catch(i){if(a!==null)throw Se=a,i;Ye=1,ki(e,jt(l,e.current)),Se=null;return}t.flags&32768?(je||n===1?e=!0:Dn||(we&536870912)!==0?e=!1:(Sl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Dt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Xf(t,e)):Hi(t)}function Hi(e){var t=e;do{if((t.flags&32768)!==0){Xf(t,Sl);return}e=t.return;var l=sp(t.alternate,t,il);if(l!==null){Se=l;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ye===0&&(Ye=5)}function Xf(e,t){do{var l=op(e.alternate,e);if(l!==null){l.flags&=32767,Se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=l}while(e!==null);Ye=6,Se=null}function Ff(e,t,l,n,a,i,c,d,E){e.cancelPendingCommit=null;do qi();while(et!==0);if((Ce&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Yr,Kg(e,l,i,c,d,E),e===Le&&(Se=Le=null,we=0),zn=t,wl=e,Mn=l,Qu=i,$u=a,Lf=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Sp(Ne,function(){return Jf(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=y.T,y.T=null,a=G.p,G.p=2,c=Ce,Ce|=4;try{cp(e,t,l)}finally{Ce=c,G.p=a,y.T=n}}et=1,Qf(),$f(),Kf()}}function Qf(){if(et===1){et=0;var e=wl,t=zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=y.T,y.T=null;var n=G.p;G.p=2;var a=Ce;Ce|=4;try{Cf(t,e);var i=cs,c=zo(e.containerInfo),d=i.focusedElem,E=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&Ro(d.ownerDocument.documentElement,d)){if(E!==null&&Ur(d)){var R=E.start,Y=E.end;if(Y===void 0&&(Y=R),"selectionStart"in d)d.selectionStart=R,d.selectionEnd=Math.min(Y,d.value.length);else{var F=d.ownerDocument||document,M=F&&F.defaultView||window;if(M.getSelection){var B=M.getSelection(),he=d.textContent.length,oe=Math.min(E.start,he),Re=E.end===void 0?oe:Math.min(E.end,he);!B.extend&&oe>Re&&(c=Re,Re=oe,oe=c);var O=Do(d,oe),C=Do(d,Re);if(O&&C&&(B.rangeCount!==1||B.anchorNode!==O.node||B.anchorOffset!==O.offset||B.focusNode!==C.node||B.focusOffset!==C.offset)){var D=F.createRange();D.setStart(O.node,O.offset),B.removeAllRanges(),oe>Re?(B.addRange(D),B.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),B.addRange(D))}}}}for(F=[],B=d;B=B.parentNode;)B.nodeType===1&&F.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<F.length;d++){var V=F[d];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Wi=!!os,cs=os=null}finally{Ce=a,G.p=n,y.T=l}}e.current=t,et=2}}function $f(){if(et===2){et=0;var e=wl,t=zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=y.T,y.T=null;var n=G.p;G.p=2;var a=Ce;Ce|=4;try{Af(e,t.alternate,t)}finally{Ce=a,G.p=n,y.T=l}}et=3}}function Kf(){if(et===4||et===3){et=0,fr();var e=wl,t=zn,l=Mn,n=Lf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,zn=wl=null,If(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Nl=null),br(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Vn,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=y.T,a=G.p,G.p=2,y.T=null;try{for(var i=e.onRecoverableError,c=0;c<n.length;c++){var d=n[c];i(d.value,{componentStack:d.stack})}}finally{y.T=t,G.p=a}}(Mn&3)!==0&&qi(),Zt(e),a=e.pendingLanes,(l&4194090)!==0&&(a&42)!==0?e===Ku?ja++:(ja=0,Ku=e):ja=0,Ca(0)}}function If(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function qi(e){return Qf(),$f(),Kf(),Jf()}function Jf(){if(et!==5)return!1;var e=wl,t=Qu;Qu=0;var l=br(Mn),n=y.T,a=G.p;try{G.p=32>l?32:l,y.T=null,l=$u,$u=null;var i=wl,c=Mn;if(et=0,zn=wl=null,Mn=0,(Ce&6)!==0)throw Error(o(331));var d=Ce;if(Ce|=4,zf(i.current),Of(i,i.current,c,l),Ce=d,Ca(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Vn,i)}catch{}return!0}finally{G.p=a,y.T=n,If(e,t)}}function Wf(e,t,l){t=jt(l,t),t=_u(e.stateNode,t,2),e=hl(e,t,2),e!==null&&(Fn(e,2),Zt(e))}function Me(e,t,l){if(e.tag===3)Wf(e,e,l);else for(;t!==null;){if(t.tag===3){Wf(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){e=jt(l,e),l=tf(2),n=hl(t,l,2),n!==null&&(lf(l,n,t,e),Fn(n,2),Zt(n));break}}t=t.return}}function Pu(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new gp;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(Zu=!0,a.add(l),e=mp.bind(null,e,t,l),t.then(e,e))}function mp(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(we&l)===l&&(Ye===4||Ye===3&&(we&62914560)===we&&300>At()-Fu?(Ce&2)===0&&Ln(e,0):Vu|=l,Rn===we&&(Rn=0)),Zt(e)}function Pf(e,t){t===0&&(t=Qs()),e=mn(e,t),e!==null&&(Fn(e,t),Zt(e))}function vp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Pf(e,l)}function xp(e,t){var l=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),Pf(e,l)}function Sp(e,t){return ln(e,t)}var Gi=null,Bn=null,es=!1,Yi=!1,ts=!1,Pl=0;function Zt(e){e!==Bn&&e.next===null&&(Bn===null?Gi=Bn=e:Bn=Bn.next=e),Yi=!0,es||(es=!0,Np())}function Ca(e,t){if(!ts&&Yi){ts=!0;do for(var l=!1,n=Gi;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var c=n.suspendedLanes,d=n.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=a&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,nd(n,i))}else i=we,i=$a(n,n===Le?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||Xn(n,i)||(l=!0,nd(n,i));n=n.next}while(l);ts=!1}}function Ep(){ed()}function ed(){Yi=es=!1;var e=0;Pl!==0&&(Op()&&(e=Pl),Pl=0);for(var t=At(),l=null,n=Gi;n!==null;){var a=n.next,i=td(n,t);i===0?(n.next=null,l===null?Gi=a:l.next=a,a===null&&(Bn=l)):(l=n,(e!==0||(i&3)!==0)&&(Yi=!0)),n=a}Ca(e)}function td(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-ht(i),d=1<<c,E=a[c];E===-1?((d&l)===0||(d&n)!==0)&&(a[c]=$g(d,t)):E<=t&&(e.expiredLanes|=d),i&=~d}if(t=Le,l=we,l=$a(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Zn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Xn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Zn(n),br(l)){case 2:case 8:l=Te;break;case 32:l=Ne;break;case 268435456:l=Xt;break;default:l=Ne}return n=ld.bind(null,e),l=ln(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Zn(n),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qi()&&e.callbackNode!==l)return null;var n=we;return n=$a(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Bf(e,n,t),td(e,At()),e.callbackNode!=null&&e.callbackNode===l?ld.bind(null,e):null)}function nd(e,t){if(qi())return null;Bf(e,t,!0)}function Np(){Rp(function(){(Ce&6)!==0?ln(W,Ep):ed()})}function ls(){return Pl===0&&(Pl=Fs()),Pl}function ad(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pa(""+e)}function id(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function wp(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=ad((a[ut]||null).action),c=n.submitter;c&&(t=(t=c[ut]||null)?ad(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new ni("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Pl!==0){var E=c?id(a,c):new FormData(a);Eu(l,{pending:!0,data:E,method:a.method,action:i},null,E)}}else typeof i=="function"&&(d.preventDefault(),E=c?id(a,c):new FormData(a),Eu(l,{pending:!0,data:E,method:a.method,action:i},i,E))},currentTarget:a}]})}}for(var ns=0;ns<Gr.length;ns++){var as=Gr[ns],Ap=as.toLowerCase(),Tp=as[0].toUpperCase()+as.slice(1);Mt(Ap,"on"+Tp)}Mt(Uo,"onAnimationEnd"),Mt(Bo,"onAnimationIteration"),Mt(Ho,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(Zh,"onTransitionRun"),Mt(Vh,"onTransitionStart"),Mt(Xh,"onTransitionCancel"),Mt(qo,"onTransitionEnd"),sn("onMouseEnter",["mouseout","mouseover"]),sn("onMouseLeave",["mouseout","mouseover"]),sn("onPointerEnter",["pointerout","pointerover"]),sn("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ka="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_p=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ka));function rd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var c=n.length-1;0<=c;c--){var d=n[c],E=d.instance,R=d.currentTarget;if(d=d.listener,E!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=R;try{i(a)}catch(Y){Ci(Y)}a.currentTarget=null,i=E}else for(c=0;c<n.length;c++){if(d=n[c],E=d.instance,R=d.currentTarget,d=d.listener,E!==i&&a.isPropagationStopped())break e;i=d,a.currentTarget=R;try{i(a)}catch(Y){Ci(Y)}a.currentTarget=null,i=E}}}}function Ee(e,t){var l=t[yr];l===void 0&&(l=t[yr]=new Set);var n=e+"__bubble";l.has(n)||(ud(t,e,2,!1),l.add(n))}function is(e,t,l){var n=0;t&&(n|=4),ud(l,e,n,t)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function rs(e){if(!e[Zi]){e[Zi]=!0,Ws.forEach(function(l){l!=="selectionchange"&&(_p.has(l)||is(l,!1,e),is(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zi]||(t[Zi]=!0,is("selectionchange",!1,t))}}function ud(e,t,l,n){switch(Od(t)){case 2:var a=eb;break;case 8:a=tb;break;default:a=xs}l=a.bind(null,t,l,e),a=void 0,!jr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function us(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var d=n.stateNode.containerInfo;if(d===a)break;if(c===4)for(c=n.return;c!==null;){var E=c.tag;if((E===3||E===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;d!==null;){if(c=an(d),c===null)return;if(E=c.tag,E===5||E===6||E===26||E===27){n=i=c;continue e}d=d.parentNode}}n=n.return}go(function(){var R=i,Y=Tr(l),F=[];e:{var M=Go.get(e);if(M!==void 0){var B=ni,he=e;switch(e){case"keypress":if(ti(l)===0)break e;case"keydown":case"keyup":B=Sh;break;case"focusin":he="focus",B=Dr;break;case"focusout":he="blur",B=Dr;break;case"beforeblur":case"afterblur":B=Dr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=bo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=oh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=wh;break;case Uo:case Bo:case Ho:B=dh;break;case qo:B=Th;break;case"scroll":case"scrollend":B=uh;break;case"wheel":B=jh;break;case"copy":case"cut":case"paste":B=hh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=mo;break;case"toggle":case"beforetoggle":B=kh}var oe=(t&4)!==0,Re=!oe&&(e==="scroll"||e==="scrollend"),O=oe?M!==null?M+"Capture":null:M;oe=[];for(var C=R,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||O===null||(V=Kn(C,O),V!=null&&oe.push(Oa(C,V,D))),Re)break;C=C.return}0<oe.length&&(M=new B(M,he,null,l,Y),F.push({event:M,listeners:oe}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",M&&l!==Ar&&(he=l.relatedTarget||l.fromElement)&&(an(he)||he[nn]))break e;if((B||M)&&(M=Y.window===Y?Y:(M=Y.ownerDocument)?M.defaultView||M.parentWindow:window,B?(he=l.relatedTarget||l.toElement,B=R,he=he?an(he):null,he!==null&&(Re=h(he),oe=he.tag,he!==Re||oe!==5&&oe!==27&&oe!==6)&&(he=null)):(B=null,he=R),B!==he)){if(oe=bo,V="onMouseLeave",O="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=mo,V="onPointerLeave",O="onPointerEnter",C="pointer"),Re=B==null?M:$n(B),D=he==null?M:$n(he),M=new oe(V,C+"leave",B,l,Y),M.target=Re,M.relatedTarget=D,V=null,an(Y)===R&&(oe=new oe(O,C+"enter",he,l,Y),oe.target=D,oe.relatedTarget=Re,V=oe),Re=V,B&&he)t:{for(oe=B,O=he,C=0,D=oe;D;D=Hn(D))C++;for(D=0,V=O;V;V=Hn(V))D++;for(;0<C-D;)oe=Hn(oe),C--;for(;0<D-C;)O=Hn(O),D--;for(;C--;){if(oe===O||O!==null&&oe===O.alternate)break t;oe=Hn(oe),O=Hn(O)}oe=null}else oe=null;B!==null&&sd(F,M,B,oe,!1),he!==null&&Re!==null&&sd(F,Re,he,oe,!0)}}e:{if(M=R?$n(R):window,B=M.nodeName&&M.nodeName.toLowerCase(),B==="select"||B==="input"&&M.type==="file")var ae=To;else if(wo(M))if(_o)ae=qh;else{ae=Bh;var xe=Uh}else B=M.nodeName,!B||B.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?R&&wr(R.elementType)&&(ae=To):ae=Hh;if(ae&&(ae=ae(e,R))){Ao(F,ae,l,Y);break e}xe&&xe(e,M,R),e==="focusout"&&R&&M.type==="number"&&R.memoizedProps.value!=null&&Nr(M,"number",M.value)}switch(xe=R?$n(R):window,e){case"focusin":(wo(xe)||xe.contentEditable==="true")&&(pn=xe,Br=R,na=null);break;case"focusout":na=Br=pn=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":Hr=!1,Mo(F,l,Y);break;case"selectionchange":if(Yh)break;case"keydown":case"keyup":Mo(F,l,Y)}var ue;if(zr)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else hn?Eo(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(vo&&l.locale!=="ko"&&(hn||de!=="onCompositionStart"?de==="onCompositionEnd"&&hn&&(ue=ho()):(cl=Y,Cr="value"in cl?cl.value:cl.textContent,hn=!0)),xe=Vi(R,de),0<xe.length&&(de=new yo(de,e,null,l,Y),F.push({event:de,listeners:xe}),ue?de.data=ue:(ue=No(l),ue!==null&&(de.data=ue)))),(ue=Dh?Rh(e,l):zh(e,l))&&(de=Vi(R,"onBeforeInput"),0<de.length&&(xe=new yo("onBeforeInput","beforeinput",null,l,Y),F.push({event:xe,listeners:de}),xe.data=ue)),wp(F,e,R,l,Y)}rd(F,t)})}function Oa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Vi(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Kn(e,l),a!=null&&n.unshift(Oa(e,a,i)),a=Kn(e,t),a!=null&&n.push(Oa(e,a,i))),e.tag===3)return n;e=e.return}return[]}function Hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sd(e,t,l,n,a){for(var i=t._reactName,c=[];l!==null&&l!==n;){var d=l,E=d.alternate,R=d.stateNode;if(d=d.tag,E!==null&&E===n)break;d!==5&&d!==26&&d!==27||R===null||(E=R,a?(R=Kn(l,i),R!=null&&c.unshift(Oa(l,R,E))):a||(R=Kn(l,i),R!=null&&c.push(Oa(l,R,E)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var jp=/\r\n?/g,Cp=/\u0000|\uFFFD/g;function od(e){return(typeof e=="string"?e:""+e).replace(jp,`
49
+ `).replace(Cp,"")}function cd(e,t){return t=od(t),od(e)===t}function Xi(){}function De(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||fn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&fn(e,""+n);break;case"className":Ia(e,"class",n);break;case"tabIndex":Ia(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ia(e,l,n);break;case"style":co(e,n,i);break;case"data":if(t!=="object"){Ia(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Pa(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&De(e,t,"name",a.name,a,null),De(e,t,"formEncType",a.formEncType,a,null),De(e,t,"formMethod",a.formMethod,a,null),De(e,t,"formTarget",a.formTarget,a,null)):(De(e,t,"encType",a.encType,a,null),De(e,t,"method",a.method,a,null),De(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Pa(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=Xi);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Pa(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Ka(e,"popover",n);break;case"xlinkActuate":Ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Ft(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Ft(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Ft(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Ft(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ka(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ih.get(l)||l,Ka(e,l,n))}}function ss(e,t,l,n,a,i){switch(l){case"style":co(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof n=="string"?fn(e,n):(typeof n=="number"||typeof n=="bigint")&&fn(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ps.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[ut]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):Ka(e,l,n)}}}function tt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,i,c,l,null)}}a&&De(e,t,"srcSet",l.srcSet,l,null),n&&De(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=i=c=a=null,E=null,R=null;for(n in l)if(l.hasOwnProperty(n)){var Y=l[n];if(Y!=null)switch(n){case"name":a=Y;break;case"type":c=Y;break;case"checked":E=Y;break;case"defaultChecked":R=Y;break;case"value":i=Y;break;case"defaultValue":d=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o(137,t));break;default:De(e,t,n,Y,l,null)}}ro(e,i,d,E,R,c,a,!1),Ja(e);return;case"select":Ee("invalid",e),n=c=i=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":n=d;default:De(e,t,a,d,l,null)}t=i,l=c,e.multiple=!!n,t!=null?cn(e,!!n,t,!1):l!=null&&cn(e,!!n,l,!0);return;case"textarea":Ee("invalid",e),i=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":n=d;break;case"defaultValue":a=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:De(e,t,c,d,l,null)}so(e,n,a,i),Ja(e);return;case"option":for(E in l)if(l.hasOwnProperty(E)&&(n=l[E],n!=null))switch(E){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:De(e,t,E,n,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<ka.length;n++)Ee(ka[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in l)if(l.hasOwnProperty(R)&&(n=l[R],n!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,R,n,l,null)}return;default:if(wr(t)){for(Y in l)l.hasOwnProperty(Y)&&(n=l[Y],n!==void 0&&ss(e,t,Y,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&De(e,t,d,n,l,null))}function kp(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,c=null,d=null,E=null,R=null,Y=null;for(B in l){var F=l[B];if(l.hasOwnProperty(B)&&F!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=F;default:n.hasOwnProperty(B)||De(e,t,B,null,n,F)}}for(var M in n){var B=n[M];if(F=l[M],n.hasOwnProperty(M)&&(B!=null||F!=null))switch(M){case"type":i=B;break;case"name":a=B;break;case"checked":R=B;break;case"defaultChecked":Y=B;break;case"value":c=B;break;case"defaultValue":d=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:B!==F&&De(e,t,M,B,n,F)}}Er(e,c,d,E,R,Y,i,a);return;case"select":B=c=d=M=null;for(i in l)if(E=l[i],l.hasOwnProperty(i)&&E!=null)switch(i){case"value":break;case"multiple":B=E;default:n.hasOwnProperty(i)||De(e,t,i,null,n,E)}for(a in n)if(i=n[a],E=l[a],n.hasOwnProperty(a)&&(i!=null||E!=null))switch(a){case"value":M=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==E&&De(e,t,a,i,n,E)}t=d,l=c,n=B,M!=null?cn(e,!!l,M,!1):!!n!=!!l&&(t!=null?cn(e,!!l,t,!0):cn(e,!!l,l?[]:"",!1));return;case"textarea":B=M=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:De(e,t,d,null,n,a)}for(c in n)if(a=n[c],i=l[c],n.hasOwnProperty(c)&&(a!=null||i!=null))switch(c){case"value":M=a;break;case"defaultValue":B=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==i&&De(e,t,c,a,n,i)}uo(e,M,B);return;case"option":for(var he in l)if(M=l[he],l.hasOwnProperty(he)&&M!=null&&!n.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:De(e,t,he,null,n,M)}for(E in n)if(M=n[E],B=l[E],n.hasOwnProperty(E)&&M!==B&&(M!=null||B!=null))switch(E){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:De(e,t,E,M,n,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var oe in l)M=l[oe],l.hasOwnProperty(oe)&&M!=null&&!n.hasOwnProperty(oe)&&De(e,t,oe,null,n,M);for(R in n)if(M=n[R],B=l[R],n.hasOwnProperty(R)&&M!==B&&(M!=null||B!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:De(e,t,R,M,n,B)}return;default:if(wr(t)){for(var Re in l)M=l[Re],l.hasOwnProperty(Re)&&M!==void 0&&!n.hasOwnProperty(Re)&&ss(e,t,Re,void 0,n,M);for(Y in n)M=n[Y],B=l[Y],!n.hasOwnProperty(Y)||M===B||M===void 0&&B===void 0||ss(e,t,Y,M,n,B);return}}for(var O in l)M=l[O],l.hasOwnProperty(O)&&M!=null&&!n.hasOwnProperty(O)&&De(e,t,O,null,n,M);for(F in n)M=n[F],B=l[F],!n.hasOwnProperty(F)||M===B||M==null&&B==null||De(e,t,F,M,n,B)}var os=null,cs=null;function Fi(e){return e.nodeType===9?e:e.ownerDocument}function fd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ds=null;function Op(){var e=window.event;return e&&e.type==="popstate"?e===ds?!1:(ds=e,!0):(ds=null,!1)}var gd=typeof setTimeout=="function"?setTimeout:void 0,Dp=typeof clearTimeout=="function"?clearTimeout:void 0,hd=typeof Promise=="function"?Promise:void 0,Rp=typeof queueMicrotask=="function"?queueMicrotask:typeof hd<"u"?function(e){return hd.resolve(null).then(e).catch(zp)}:gd;function zp(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function pd(e,t){var l=t,n=0,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(0<n&&8>n){l=n;var c=e.ownerDocument;if(l&1&&Da(c.documentElement),l&2&&Da(c.body),l&4)for(l=c.head,Da(l),c=l.firstChild;c;){var d=c.nextSibling,E=c.nodeName;c[Qn]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=d}}if(a===0){e.removeChild(i),qa(t);return}a--}else l==="$"||l==="$?"||l==="$!"?a++:n=l.charCodeAt(0)-48;else n=0;l=i}while(l);qa(t)}function gs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gs(l),mr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Mp(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Qn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function Lp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ut(e.nextSibling),e===null))return null;return e}function hs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Up(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var ps=null;function bd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function yd(e,t,l){switch(t=Fi(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Da(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mr(e)}var zt=new Map,md=new Set;function Qi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var rl=G.d;G.d={f:Bp,r:Hp,D:qp,C:Gp,L:Yp,m:Zp,X:Xp,S:Vp,M:Fp};function Bp(){var e=rl.f(),t=Bi();return e||t}function Hp(e){var t=rn(e);t!==null&&t.tag===5&&t.type==="form"?Uc(t):rl.r(e)}var qn=typeof document>"u"?null:document;function vd(e,t,l){var n=qn;if(n&&typeof t=="string"&&t){var a=_t(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),md.has(a)||(md.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),tt(t,"link",e),Ke(t),n.head.appendChild(t)))}}function qp(e){rl.D(e),vd("dns-prefetch",e,null)}function Gp(e,t){rl.C(e,t),vd("preconnect",e,t)}function Yp(e,t,l){rl.L(e,t,l);var n=qn;if(n&&e&&t){var a='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+_t(l.imageSizes)+'"]')):a+='[href="'+_t(e)+'"]';var i=a;switch(t){case"style":i=Gn(e);break;case"script":i=Yn(e)}zt.has(i)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Ra(i))||t==="script"&&n.querySelector(za(i))||(t=n.createElement("link"),tt(t,"link",e),Ke(t),n.head.appendChild(t)))}}function Zp(e,t){rl.m(e,t);var l=qn;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+_t(n)+'"][href="'+_t(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Yn(e)}if(!zt.has(i)&&(e=w({rel:"modulepreload",href:e},t),zt.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(za(i)))return}n=l.createElement("link"),tt(n,"link",e),Ke(n),l.head.appendChild(n)}}}function Vp(e,t,l){rl.S(e,t,l);var n=qn;if(n&&e){var a=un(n).hoistableStyles,i=Gn(e);t=t||"default";var c=a.get(i);if(!c){var d={loading:0,preload:null};if(c=n.querySelector(Ra(i)))d.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(i))&&bs(e,l);var E=c=n.createElement("link");Ke(E),tt(E,"link",e),E._p=new Promise(function(R,Y){E.onload=R,E.onerror=Y}),E.addEventListener("load",function(){d.loading|=1}),E.addEventListener("error",function(){d.loading|=2}),d.loading|=4,$i(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:d},a.set(i,c)}}}function Xp(e,t){rl.X(e,t);var l=qn;if(l&&e){var n=un(l).hoistableScripts,a=Yn(e),i=n.get(a);i||(i=l.querySelector(za(a)),i||(e=w({src:e,async:!0},t),(t=zt.get(a))&&ys(e,t),i=l.createElement("script"),Ke(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Fp(e,t){rl.M(e,t);var l=qn;if(l&&e){var n=un(l).hoistableScripts,a=Yn(e),i=n.get(a);i||(i=l.querySelector(za(a)),i||(e=w({src:e,async:!0,type:"module"},t),(t=zt.get(a))&&ys(e,t),i=l.createElement("script"),Ke(i),tt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function xd(e,t,l,n){var a=(a=re.current)?Qi(a):null;if(!a)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Gn(l.href),l=un(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Gn(l.href);var i=un(a).hoistableStyles,c=i.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=a.querySelector(Ra(e)))&&!i._p&&(c.instance=i,c.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),i||Qp(a,e,l,c.state))),t&&n===null)throw Error(o(528,""));return c}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yn(l),l=un(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Gn(e){return'href="'+_t(e)+'"'}function Ra(e){return'link[rel="stylesheet"]['+e+"]"}function Sd(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Qp(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),tt(t,"link",l),Ke(t),e.head.appendChild(t))}function Yn(e){return'[src="'+_t(e)+'"]'}function za(e){return"script[async]"+e}function Ed(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(n)return t.instance=n,Ke(n),n;var a=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ke(n),tt(n,"style",a),$i(n,l.precedence,e),t.instance=n;case"stylesheet":a=Gn(l.href);var i=e.querySelector(Ra(a));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;n=Sd(l),(a=zt.get(a))&&bs(n,a),i=(e.ownerDocument||e).createElement("link"),Ke(i);var c=i;return c._p=new Promise(function(d,E){c.onload=d,c.onerror=E}),tt(i,"link",n),t.state.loading|=4,$i(i,l.precedence,e),t.instance=i;case"script":return i=Yn(l.src),(a=e.querySelector(za(i)))?(t.instance=a,Ke(a),a):(n=l,(a=zt.get(i))&&(n=w({},l),ys(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ke(a),tt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,$i(n,l.precedence,e));return t.instance}function $i(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,c=0;c<n.length;c++){var d=n[c];if(d.dataset.precedence===t)i=d;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function bs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ys(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ki=null;function Nd(e,t,l){if(Ki===null){var n=new Map,a=Ki=new Map;a.set(l,n)}else a=Ki,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[Qn]||i[nt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=n.get(c);d?d.push(i):n.set(c,[i])}}return n}function wd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function $p(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ad(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Ma=null;function Kp(){}function Ip(e,t,l){if(Ma===null)throw Error(o(475));var n=Ma;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var a=Gn(l.href),i=e.querySelector(Ra(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(n.count++,n=Ii.bind(n),e.then(n,n)),t.state.loading|=4,t.instance=i,Ke(i);return}i=e.ownerDocument||e,l=Sd(l),(a=zt.get(a))&&bs(l,a),i=i.createElement("link"),Ke(i);var c=i;c._p=new Promise(function(d,E){c.onload=d,c.onerror=E}),tt(i,"link",l),t.instance=i}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(n.count++,t=Ii.bind(n),e.addEventListener("load",t),e.addEventListener("error",t))}}function Jp(){if(Ma===null)throw Error(o(475));var e=Ma;return e.stylesheets&&e.count===0&&ms(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&ms(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Ii(){if(this.count--,this.count===0){if(this.stylesheets)ms(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ji=null;function ms(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ji=new Map,t.forEach(Wp,e),Ji=null,Ii.call(e))}function Wp(e,t){if(!(t.state.loading&4)){var l=Ji.get(e);if(l)var n=l.get(null);else{l=new Map,Ji.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var c=a[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=t.instance,c=a.getAttribute("data-precedence"),i=l.get(c)||n,i===n&&l.set(null,a),l.set(c,a),this.count++,n=Ii.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var La={$$typeof:H,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Pp(e,t,l,n,a,i,c,d){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hr(0),this.hiddenUpdates=hr(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Td(e,t,l,n,a,i,c,d,E,R,Y,F){return e=new Pp(e,t,l,c,d,E,R,F),t=1,i===!0&&(t|=24),i=bt(3,null,null,t),e.current=i,i.stateNode=e,t=Pr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},nu(i),e}function _d(e){return e?(e=vn,e):vn}function jd(e,t,l,n,a,i){a=_d(a),n.context===null?n.context=a:n.pendingContext=a,n=gl(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=hl(e,n,t),l!==null&&(St(l,e,t),da(l,e,t))}function Cd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function vs(e,t){Cd(e,t),(e=e.alternate)&&Cd(e,t)}function kd(e){if(e.tag===13){var t=mn(e,67108864);t!==null&&St(t,e,67108864),vs(e,67108864)}}var Wi=!0;function eb(e,t,l,n){var a=y.T;y.T=null;var i=G.p;try{G.p=2,xs(e,t,l,n)}finally{G.p=i,y.T=a}}function tb(e,t,l,n){var a=y.T;y.T=null;var i=G.p;try{G.p=8,xs(e,t,l,n)}finally{G.p=i,y.T=a}}function xs(e,t,l,n){if(Wi){var a=Ss(n);if(a===null)us(e,t,n,Pi,l),Dd(e,n);else if(nb(a,e,t,l,n))n.stopPropagation();else if(Dd(e,n),t&4&&-1<lb.indexOf(e)){for(;a!==null;){var i=rn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Ll(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var E=1<<31-ht(c);d.entanglements[1]|=E,c&=~E}Zt(i),(Ce&6)===0&&(Li=At()+500,Ca(0))}}break;case 13:d=mn(i,2),d!==null&&St(d,i,2),Bi(),vs(i,2)}if(i=Ss(n),i===null&&us(e,t,n,Pi,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else us(e,t,n,null,l)}}function Ss(e){return e=Tr(e),Es(e)}var Pi=null;function Es(e){if(Pi=null,e=an(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Pi=e,null}function Od(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dr()){case W:return 2;case Te:return 8;case Ne:case Bt:return 32;case Xt:return 268435456;default:return 32}default:return 32}}var Ns=!1,_l=null,jl=null,Cl=null,Ua=new Map,Ba=new Map,kl=[],lb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Dd(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":Ua.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ba.delete(t.pointerId)}}function Ha(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=rn(t),t!==null&&kd(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function nb(e,t,l,n,a){switch(t){case"focusin":return _l=Ha(_l,e,t,l,n,a),!0;case"dragenter":return jl=Ha(jl,e,t,l,n,a),!0;case"mouseover":return Cl=Ha(Cl,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return Ua.set(i,Ha(Ua.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Ba.set(i,Ha(Ba.get(i)||null,e,t,l,n,a)),!0}return!1}function Rd(e){var t=an(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,Ig(e.priority,function(){if(l.tag===13){var n=xt();n=pr(n);var a=mn(l,n);a!==null&&St(a,l,n),vs(l,n)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function er(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ss(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Ar=n,l.target.dispatchEvent(n),Ar=null}else return t=rn(l),t!==null&&kd(t),e.blockedOn=l,!1;t.shift()}return!0}function zd(e,t,l){er(e)&&l.delete(t)}function ab(){Ns=!1,_l!==null&&er(_l)&&(_l=null),jl!==null&&er(jl)&&(jl=null),Cl!==null&&er(Cl)&&(Cl=null),Ua.forEach(zd),Ba.forEach(zd)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ns||(Ns=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ab)))}var lr=null;function Md(e){lr!==e&&(lr=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){lr===e&&(lr=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Es(n||l)===null)continue;break}var i=rn(l);i!==null&&(e.splice(t,3),t-=3,Eu(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function qa(e){function t(E){return tr(E,e)}_l!==null&&tr(_l,e),jl!==null&&tr(jl,e),Cl!==null&&tr(Cl,e),Ua.forEach(t),Ba.forEach(t);for(var l=0;l<kl.length;l++){var n=kl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<kl.length&&(l=kl[0],l.blockedOn===null);)Rd(l),l.blockedOn===null&&kl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],c=a[ut]||null;if(typeof i=="function")c||Md(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(a=i,c=i[ut]||null)d=c.formAction;else if(Es(a)!==null)continue}else d=c.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),Md(l)}}}function ws(e){this._internalRoot=e}nr.prototype.render=ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,n=xt();jd(l,n,e,t,null,null)},nr.prototype.unmount=ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jd(e.current,2,null,e,null,null),Bi(),t[nn]=null}};function nr(e){this._internalRoot=e}nr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Is();e={blockedOn:null,target:e,priority:t};for(var l=0;l<kl.length&&t!==0&&t<kl[l].priority;l++);kl.splice(l,0,e),l===0&&Rd(e)}};var Ld=u.version;if(Ld!=="19.1.0")throw Error(o(527,Ld,"19.1.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=S(t),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var ib={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:y,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ar.isDisabled&&ar.supportsFiber)try{Vn=ar.inject(ib),gt=ar}catch{}}return Ya.createRoot=function(e,t){if(!g(e))throw Error(o(299));var l=!1,n="",a=Jc,i=Wc,c=Pc,d=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(d=t.unstable_transitionCallbacks)),t=Td(e,1,!1,null,null,l,n,a,i,c,d,null),e[nn]=t.current,rs(e),new ws(t)},Ya.hydrateRoot=function(e,t,l){if(!g(e))throw Error(o(299));var n=!1,a="",i=Jc,c=Wc,d=Pc,E=null,R=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(E=l.unstable_transitionCallbacks),l.formState!==void 0&&(R=l.formState)),t=Td(e,1,!0,t,l??null,n,a,i,c,d,E,R),t.context=_d(null),l=t.current,n=xt(),n=pr(n),a=gl(n),a.callback=null,hl(l,a,n),l=n,t.current.lanes=l,Fn(t,l),Zt(t),e[nn]=t.current,rs(e),new nr(t)},Ya.version="19.1.0",Ya}var Fd;function pb(){if(Fd)return _s.exports;Fd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(u){console.error(u)}}return r(),_s.exports=hb(),_s.exports}var bb=pb();const yb=dg(bb),gg=["shift","alt","meta","mod","ctrl","control"],mb={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Rl(r){return(mb[r.trim()]||r.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function hg(r){return gg.includes(r)}function Os(r,u=","){return r.toLowerCase().split(u)}function Ds(r,u="+",f=">",o=!1,g){let h=[],v=!1;r.includes(f)?(v=!0,h=r.toLocaleLowerCase().split(f).map(p=>Rl(p))):h=r.toLocaleLowerCase().split(u).map(p=>Rl(p));const T={alt:h.includes("alt"),ctrl:h.includes("ctrl")||h.includes("control"),shift:h.includes("shift"),meta:h.includes("meta"),mod:h.includes("mod"),useKey:o},S=h.filter(p=>!gg.includes(p));return{...T,keys:S,description:g,isSequence:v}}typeof document<"u"&&(document.addEventListener("keydown",r=>{r.code!==void 0&&pg([Rl(r.code)])}),document.addEventListener("keyup",r=>{r.code!==void 0&&bg([Rl(r.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{ul.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{ul.clear()},0)}));const ul=new Set;function qs(r){return Array.isArray(r)}function vb(r,u=","){return(qs(r)?r:r.split(u)).every(f=>ul.has(f.trim().toLowerCase()))}function pg(r){const u=Array.isArray(r)?r:[r];ul.has("meta")&&ul.forEach(f=>!hg(f)&&ul.delete(f.toLowerCase())),u.forEach(f=>ul.add(f.toLowerCase()))}function bg(r){const u=Array.isArray(r)?r:[r];r==="meta"?ul.clear():u.forEach(f=>ul.delete(f.toLowerCase()))}function xb(r,u,f){(typeof f=="function"&&f(r,u)||f===!0)&&r.preventDefault()}function Sb(r,u,f){return typeof f=="function"?f(r,u):f===!0||f===void 0}function Eb(r){return yg(r,["input","textarea","select"])}function yg(r,u=!1){const{target:f,composed:o}=r;let g;return Nb(f)&&o?g=r.composedPath()[0]&&r.composedPath()[0].tagName:g=f&&f.tagName,qs(u)?!!(g&&u&&u.some(h=>h.toLowerCase()===g.toLowerCase())):!!(g&&u&&u)}function Nb(r){return!!r.tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")}function wb(r,u){return r.length===0&&u?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):u?r.some(f=>u.includes(f))||r.includes("*"):!0}const Ab=(r,u,f=!1)=>{const{alt:o,meta:g,mod:h,shift:v,ctrl:T,keys:S,useKey:p}=u,{code:w,key:b,ctrlKey:k,metaKey:q,shiftKey:x,altKey:A}=r,N=Rl(w);if(p&&S?.length===1&&S.includes(b))return!0;if(!(S!=null&&S.includes(N))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(N))return!1;if(!f){if(o!==A&&N!=="alt"||v!==x&&N!=="shift")return!1;if(h){if(!q&&!k)return!1}else if(g!==q&&N!=="meta"&&N!=="os"||T!==k&&N!=="ctrl"&&N!=="control")return!1}return S&&S.length===1&&S.includes(N)?!0:S?vb(S):!S},mg=L.createContext(void 0),Tb=()=>L.useContext(mg);function _b({addHotkey:r,removeHotkey:u,children:f}){return s.jsx(mg.Provider,{value:{addHotkey:r,removeHotkey:u},children:f})}function Gs(r,u){return r&&u&&typeof r=="object"&&typeof u=="object"?Object.keys(r).length===Object.keys(u).length&&Object.keys(r).reduce((f,o)=>f&&Gs(r[o],u[o]),!0):r===u}const vg=L.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),sr=()=>L.useContext(vg),jb=({initiallyActiveScopes:r=["*"],children:u})=>{const[f,o]=L.useState(r),[g,h]=L.useState([]),v=L.useCallback(b=>{o(k=>k.includes("*")?[b]:Array.from(new Set([...k,b])))},[]),T=L.useCallback(b=>{o(k=>k.filter(q=>q!==b))},[]),S=L.useCallback(b=>{o(k=>k.includes(b)?k.filter(q=>q!==b):k.includes("*")?[b]:Array.from(new Set([...k,b])))},[]),p=L.useCallback(b=>{h(k=>[...k,b])},[]),w=L.useCallback(b=>{h(k=>k.filter(q=>!Gs(q,b)))},[]);return s.jsx(vg.Provider,{value:{activeScopes:f,hotkeys:g,enableScope:v,disableScope:T,toggleScope:S},children:s.jsx(_b,{addHotkey:p,removeHotkey:w,children:u})})};function Cb(r){const u=L.useRef(void 0);return Gs(u.current,r)||(u.current=r),u.current}const Qd=r=>{r.stopPropagation(),r.preventDefault(),r.stopImmediatePropagation()},kb=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ze(r,u,f,o){const g=L.useRef(null),h=L.useRef(!1),v=f instanceof Array?o instanceof Array?void 0:o:f,T=qs(r)?r.join(v?.delimiter):r,S=f instanceof Array?f:o instanceof Array?o:void 0,p=L.useCallback(u,S??[]),w=L.useRef(p);S?w.current=p:w.current=u;const b=Cb(v),{activeScopes:k}=sr(),q=Tb();return kb(()=>{if(b?.enabled===!1||!wb(k,b?.scopes))return;let x=[],A;const N=(z,X=!1)=>{var P;if(!(Eb(z)&&!yg(z,b?.enableOnFormTags))){if(g.current!==null){const te=g.current.getRootNode();if((te instanceof Document||te instanceof ShadowRoot)&&te.activeElement!==g.current&&!g.current.contains(te.activeElement)){Qd(z);return}}(P=z.target)!=null&&P.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||Os(T,b?.delimiter).forEach(te=>{var se,be,ce,ie;if(te.includes(b?.splitKey??"+")&&te.includes(b?.sequenceSplitKey??">")){console.warn(`Hotkey ${te} contains both ${b?.splitKey??"+"} and ${b?.sequenceSplitKey??">"} which is not supported.`);return}const Q=Ds(te,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description);if(Q.isSequence){A=setTimeout(()=>{x=[]},b?.sequenceTimeoutMs??1e3);const me=Q.useKey?z.key:Rl(z.code);if(hg(me.toLowerCase()))return;x.push(me);const pe=(se=Q.keys)==null?void 0:se[x.length-1];if(me!==pe){x=[],A&&clearTimeout(A);return}x.length===((be=Q.keys)==null?void 0:be.length)&&(w.current(z,Q),A&&clearTimeout(A),x=[])}else if(Ab(z,Q,b?.ignoreModifiers)||(ce=Q.keys)!=null&&ce.includes("*")){if((ie=b?.ignoreEventWhen)!=null&&ie.call(b,z)||X&&h.current)return;if(xb(z,Q,b?.preventDefault),!Sb(z,Q,b?.enabled)){Qd(z);return}w.current(z,Q),X||(h.current=!0)}})}},j=z=>{z.code!==void 0&&(pg(Rl(z.code)),(b?.keydown===void 0&&b?.keyup!==!0||b!=null&&b.keydown)&&N(z))},_=z=>{z.code!==void 0&&(bg(Rl(z.code)),h.current=!1,b!=null&&b.keyup&&N(z,!0))},H=g.current||v?.document||document;return H.addEventListener("keyup",_,v?.eventListenerOptions),H.addEventListener("keydown",j,v?.eventListenerOptions),q&&Os(T,b?.delimiter).forEach(z=>q.addHotkey(Ds(z,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),()=>{H.removeEventListener("keyup",_,v?.eventListenerOptions),H.removeEventListener("keydown",j,v?.eventListenerOptions),q&&Os(T,b?.delimiter).forEach(z=>q.removeHotkey(Ds(z,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),x=[],A&&clearTimeout(A)}},[T,b,k]),g}/**
50
+ * @license lucide-react v0.525.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Ob=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Db=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,f,o)=>o?o.toUpperCase():f.toLowerCase()),$d=r=>{const u=Db(r);return u.charAt(0).toUpperCase()+u.slice(1)},xg=(...r)=>r.filter((u,f,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===f).join(" ").trim(),Rb=r=>{for(const u in r)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};/**
55
+ * @license lucide-react v0.525.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var zb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
+ * @license lucide-react v0.525.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const Mb=L.forwardRef(({color:r="currentColor",size:u=24,strokeWidth:f=2,absoluteStrokeWidth:o,className:g="",children:h,iconNode:v,...T},S)=>L.createElement("svg",{ref:S,...zb,width:u,height:u,stroke:r,strokeWidth:o?Number(f)*24/Number(u):f,className:xg("lucide",g),...!h&&!Rb(T)&&{"aria-hidden":"true"},...T},[...v.map(([p,w])=>L.createElement(p,w)),...Array.isArray(h)?h:[h]]));/**
65
+ * @license lucide-react v0.525.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Be=(r,u)=>{const f=L.forwardRef(({className:o,...g},h)=>L.createElement(Mb,{ref:h,iconNode:u,className:xg(`lucide-${Ob($d(r))}`,`lucide-${r}`,o),...g}));return f.displayName=$d(r),f};/**
70
+ * @license lucide-react v0.525.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Lb=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],Ub=Be("align-left",Lb);/**
75
+ * @license lucide-react v0.525.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const Bb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Va=Be("check",Bb);/**
80
+ * @license lucide-react v0.525.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Hb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ys=Be("chevron-down",Hb);/**
85
+ * @license lucide-react v0.525.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const qb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Sg=Be("chevron-right",qb);/**
90
+ * @license lucide-react v0.525.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Gb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Yb=Be("columns-2",Gb);/**
95
+ * @license lucide-react v0.525.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const Zb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Eg=Be("copy",Zb);/**
100
+ * @license lucide-react v0.525.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const Vb=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Xb=Be("eraser",Vb);/**
105
+ * @license lucide-react v0.525.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Fb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],Ng=Be("file-diff",Fb);/**
110
+ * @license lucide-react v0.525.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Qb=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],wg=Be("file-pen",Qb);/**
115
+ * @license lucide-react v0.525.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const $b=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Ag=Be("file-plus",$b);/**
120
+ * @license lucide-react v0.525.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const Kb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],Tg=Be("file-x",Kb);/**
125
+ * @license lucide-react v0.525.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Ib=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Jb=Be("folder-open",Ib);/**
130
+ * @license lucide-react v0.525.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const Wb=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Pb=Be("folder",Wb);/**
135
+ * @license lucide-react v0.525.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const ey=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],ty=Be("keyboard",ey);/**
140
+ * @license lucide-react v0.525.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const ly=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],ny=Be("list",ly);/**
145
+ * @license lucide-react v0.525.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const ay=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],_g=Be("message-square",ay);/**
150
+ * @license lucide-react v0.525.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const iy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],ry=Be("panel-left-close",iy);/**
155
+ * @license lucide-react v0.525.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const uy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],sy=Be("panel-left",uy);/**
160
+ * @license lucide-react v0.525.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const oy=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],cy=Be("pen",oy);/**
165
+ * @license lucide-react v0.525.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const fy=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],dy=Be("refresh-cw",fy);/**
170
+ * @license lucide-react v0.525.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const gy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],hy=Be("search",gy);/**
175
+ * @license lucide-react v0.525.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const py=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jg=Be("settings",py);/**
180
+ * @license lucide-react v0.525.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const by=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],yy=Be("square",by);/**
185
+ * @license lucide-react v0.525.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const my=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zs=Be("x",my);function Cg({checked:r,onChange:u,label:f,className:o="",title:g}){const h=T=>{T.stopPropagation(),u(!r)},v=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.stopPropagation(),u(!r))};return s.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${o}`,title:g,onClick:h,onKeyDown:v,role:"checkbox","aria-checked":r,tabIndex:0,children:[s.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${r?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:r&&s.jsx(Va,{size:10,className:"text-white"})}),f&&s.jsx("span",{className:"select-none",children:f})]})}function vy({commentsCount:r,isCopiedAll:u,onCopyAll:f,onDeleteAll:o,onViewAll:g}){const[h,v]=L.useState(!1),T=L.useRef(null);L.useEffect(()=>{const b=k=>{T.current&&!T.current.contains(k.target)&&v(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const S=()=>{f(),v(!1)},p=()=>{o(),v(!1)},w=()=>{g?.(),v(!1)};return s.jsxs("div",{className:"relative",ref:T,children:[s.jsxs("div",{className:"flex",children:[s.jsxs("button",{onClick:S,className:"text-xs px-3 py-1.5 pr-2 rounded-l transition-all whitespace-nowrap flex items-center gap-1.5",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${r} comments to AI coding agent`,children:[u?s.jsx(Va,{size:12}):s.jsx(Eg,{size:12}),u?"Copied All!":`Copy All Prompt (${r})`]}),s.jsx("button",{onClick:()=>v(!h),className:"text-xs px-2 py-1.5 rounded-r transition-all flex items-center border-l",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",borderTop:"1px solid var(--color-yellow-btn-border)",borderRight:"1px solid var(--color-yellow-btn-border)",borderBottom:"1px solid var(--color-yellow-btn-border)",borderLeft:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:s.jsx(Ys,{size:12,className:`transition-transform duration-200 ${h?"rotate-180":""}`})})]}),h&&s.jsxs("div",{className:"absolute left-0 right-0 bg-github-bg-primary border border-github-border rounded-b z-50 pb-px",style:{borderTop:"none"},children:[g&&s.jsxs("button",{onClick:w,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",disabled:r===0,children:[s.jsx(ny,{size:12}),"View All Comments"]}),s.jsxs("button",{onClick:p,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",children:[s.jsx(Xb,{size:12}),"Cleanup All Prompt"]})]})]})}function Vs({comment:r,onGeneratePrompt:u,onRemoveComment:f,onUpdateComment:o,onClick:g}){const[h,v]=L.useState(!1),[T,S]=L.useState(!1),[p,w]=L.useState(r.body),b=async j=>{j.stopPropagation();try{const _=u(r);await navigator.clipboard.writeText(_),v(!0),setTimeout(()=>v(!1),2e3)}catch(_){console.error("Failed to copy prompt:",_)}},k=j=>{j.stopPropagation(),S(!0),w(r.body)},q=()=>{S(!1),w(r.body)},x=j=>{j?.stopPropagation(),p.trim()!==r.body&&o(r.id,p.trim()),S(!1)},A=j=>{j.stopPropagation(),f(r.id)},N=j=>{j.key==="Enter"&&(j.metaKey||j.ctrlKey)?(j.preventDefault(),x()):j.key==="Escape"&&(j.preventDefault(),q())};return ze("escape",()=>{T&&q()},{enableOnFormTags:["textarea"],enabled:T},[T]),ze("mod+enter",()=>{T&&x()},{enableOnFormTags:["textarea"],enabled:T},[T,p,r.body]),s.jsxs("div",{id:`comment-${r.id}`,className:`p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm transition-all ${g?"hover:shadow-md cursor-pointer":""}`,onClick:g,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:s.jsxs("span",{className:"font-mono px-1 py-0.5 rounded overflow-hidden text-ellipsis whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-path-bg)",color:"var(--color-yellow-path-text)"},children:[r.file,":",Array.isArray(r.line)?`${r.line[0]}-${r.line[1]}`:r.line]})}),s.jsx("div",{className:"flex items-center gap-2",children:!T&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:b,className:"text-xs px-2 py-1 rounded transition-all whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:h?"Copied!":"Copy Prompt"}),s.jsx("button",{onClick:k,className:"text-xs p-1.5 bg-github-bg-tertiary text-github-text-secondary border border-github-border rounded hover:text-github-text-primary hover:bg-github-bg-primary transition-all",title:"Edit",children:s.jsx(cy,{size:12})}),s.jsx("button",{onClick:A,className:"text-xs p-1.5 bg-github-bg-tertiary text-green-600 border border-github-border rounded hover:bg-green-500/10 hover:border-green-600 transition-all",title:"Resolve",children:s.jsx(Va,{size:12})})]})})]}),T?s.jsxs("div",{children:[s.jsx("textarea",{value:p,onChange:j=>w(j.target.value),className:"w-full text-github-text-primary text-sm leading-6 bg-github-bg-secondary border border-github-border rounded px-2 py-1 resize-none focus:outline-none focus:border-blue-600 focus:ring-1 focus:ring-blue-600/30",rows:Math.max(2,p.split(`
190
+ `).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:j=>j.stopPropagation(),onKeyDown:j=>{j.stopPropagation(),N(j)}}),s.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[s.jsx("button",{type:"button",onClick:q,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all",children:"Cancel"}),s.jsx("button",{type:"button",onClick:x,className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:j=>{j.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",j.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!p.trim(),children:"Submit"})]})]}):s.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:r.body})]})}function xy({isOpen:r,onClose:u,onNavigate:f,comments:o,onRemoveComment:g,onGeneratePrompt:h,onUpdateComment:v}){const[T,S]=L.useState(0),p=L.useRef([]),{enableScope:w,disableScope:b}=sr(),k=[...o].sort((N,j)=>{const _=N.file.localeCompare(j.file);if(_!==0)return _;const H=Array.isArray(N.line)?N.line[0]:N.line,z=Array.isArray(j.line)?j.line[0]:j.line;return H-z}),q=L.useCallback(N=>{f(N),u()},[f,u]),x=L.useCallback(N=>{confirm(`Delete this comment?
191
+
192
+ "${N.body}"`)&&(g(N.id),T>=k.length-1&&T>0&&S(T-1))},[g,T,k.length]);L.useEffect(()=>(r?(w("comments-list"),b("navigation")):(w("navigation"),b("comments-list"),S(0)),()=>{w("navigation"),b("comments-list")}),[r,w,b]);const A={scopes:"comments-list",enableOnFormTags:!1};return ze("escape",()=>u(),A,[u]),ze("j, down",()=>S(N=>Math.min(N+1,k.length-1)),A,[k.length]),ze("k, up",()=>S(N=>Math.max(N-1,0)),A,[]),ze("enter",()=>{k[T]&&q(k[T])},A,[T,k,q]),ze("d",()=>{k[T]&&x(k[T])},A,[T,k,x]),L.useEffect(()=>{p.current[T]&&p.current[T]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[T]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:u}),s.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[s.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),s.jsx("button",{onClick:u,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:s.jsx(Zs,{size:20})})]}),s.jsxs("div",{className:"text-xs text-github-text-secondary",children:[s.jsx("span",{className:"font-mono",children:"j/k"})," or ",s.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",s.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",s.jsx("span",{className:"font-mono",children:"d"})," to delete • ",s.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),s.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:s.jsx("div",{className:"p-6",children:k.length===0?s.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"space-y-2",children:k.map((N,j)=>s.jsx("div",{ref:_=>{p.current[j]=_},className:`${T===j?"ring-2 ring-blue-500 rounded":""}`,children:s.jsx(Vs,{comment:N,onGeneratePrompt:h,onRemoveComment:g,onUpdateComment:v,onClick:_=>{_.stopPropagation(),S(j),q(N)}})},N.id))}),k.length>0&&s.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[T+1," of ",k.length," comments"]})]})})})]})]}):null}function kg(r){return r&&r.split(".").pop()?.toLowerCase()||null}function Sy(r){return r&&r.split("/").pop()||""}const Ey=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function Ny(r){if(!r)return!1;const u=kg(r);return u?Ey.includes(u):!1}function Og({onSubmit:r,onCancel:u}){const[f,o]=L.useState(""),[g,h]=L.useState(!1),v=async S=>{if(S.preventDefault(),!!f.trim()){h(!0);try{await r(f.trim()),o("")}catch(p){console.error("Failed to submit comment:",p)}finally{h(!1)}}},T=S=>{S.key==="Enter"&&(S.metaKey||S.ctrlKey)?v(S):S.key==="Escape"&&u()};return s.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:v,"data-empty":!f.trim(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),s.jsx("span",{className:"text-xs text-github-text-muted",children:"Cmd+Enter to submit • Escape to cancel"})]}),s.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:f,onChange:S=>o(S.target.value),onKeyDown:T,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:g}),s.jsxs("div",{className:"flex gap-2 justify-end",children:[s.jsx("button",{type:"button",onClick:u,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:g,children:"Cancel"}),s.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:S=>{S.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",S.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",S.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!f.trim()||g,children:g?"Submitting...":"Submit"})]})]})}const rr=en.memo(({onMouseDown:r,onMouseUp:u,title:f="Add a comment"})=>s.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:r,onMouseUp:u,title:f,children:s.jsx(_g,{className:"w-4 h-4"})}));rr.displayName="CommentButton";const wy=2,Ay=100;function Ty(r){return!(r.length<wy||r.length>Ay)}function Kd(r){return r.toLowerCase()}function Id(r){const u=r.trim();return u?u.match(/^\w+$/)!==null&&Ty(u):!1}const _y=200,Dg=L.createContext(void 0);function jy({children:r}){const[u,f]=L.useState(null),o=L.useRef(null),g=L.useCallback(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),h=L.useCallback(p=>{const w=p.target;if(!w.classList.contains("word-token"))return;g();const b=w.getAttribute("data-word");b&&(o.current=setTimeout(()=>{f(b)},_y))},[g]),v=L.useCallback(()=>{g(),f(null)},[g]),T=L.useCallback(p=>u?Kd(p)===Kd(u):!1,[u]);L.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const S={highlightedWord:u,handleMouseOver:h,handleMouseOut:v,isWordHighlighted:T};return s.jsx(Dg.Provider,{value:S,children:r})}function Cy(){const r=L.useContext(Dg);if(!r)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return r}function Rg(r){var u,f,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var g=r.length;for(u=0;u<g;u++)r[u]&&(f=Rg(r[u]))&&(o&&(o+=" "),o+=f)}else for(f in r)r[f]&&(o&&(o+=" "),o+=f);return o}function zg(){for(var r,u,f=0,o="",g=arguments.length;f<g;f++)(r=arguments[f])&&(u=Rg(r))&&(o&&(o+=" "),o+=u);return o}var ky=Object.create,or=Object.defineProperty,Oy=Object.defineProperties,Dy=Object.getOwnPropertyDescriptor,Ry=Object.getOwnPropertyDescriptors,Mg=Object.getOwnPropertyNames,ur=Object.getOwnPropertySymbols,zy=Object.getPrototypeOf,Xs=Object.prototype.hasOwnProperty,Lg=Object.prototype.propertyIsEnumerable,Jd=(r,u,f)=>u in r?or(r,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[u]=f,Vt=(r,u)=>{for(var f in u||(u={}))Xs.call(u,f)&&Jd(r,f,u[f]);if(ur)for(var f of ur(u))Lg.call(u,f)&&Jd(r,f,u[f]);return r},cr=(r,u)=>Oy(r,Ry(u)),Ug=(r,u)=>{var f={};for(var o in r)Xs.call(r,o)&&u.indexOf(o)<0&&(f[o]=r[o]);if(r!=null&&ur)for(var o of ur(r))u.indexOf(o)<0&&Lg.call(r,o)&&(f[o]=r[o]);return f},My=(r,u)=>function(){return u||(0,r[Mg(r)[0]])((u={exports:{}}).exports,u),u.exports},Ly=(r,u)=>{for(var f in u)or(r,f,{get:u[f],enumerable:!0})},Uy=(r,u,f,o)=>{if(u&&typeof u=="object"||typeof u=="function")for(let g of Mg(u))!Xs.call(r,g)&&g!==f&&or(r,g,{get:()=>u[g],enumerable:!(o=Dy(u,g))||o.enumerable});return r},By=(r,u,f)=>(f=r!=null?ky(zy(r)):{},Uy(!r||!r.__esModule?or(f,"default",{value:r,enumerable:!0}):f,r)),Hy=My({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(r,u){var f=function(){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,g=0,h={},v={util:{encode:function x(A){return A instanceof T?new T(A.type,x(A.content),A.alias):Array.isArray(A)?A.map(x):A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++g}),x.__id},clone:function x(A,N){N=N||{};var j,_;switch(v.util.type(A)){case"Object":if(_=v.util.objId(A),N[_])return N[_];j={},N[_]=j;for(var H in A)A.hasOwnProperty(H)&&(j[H]=x(A[H],N));return j;case"Array":return _=v.util.objId(A),N[_]?N[_]:(j=[],N[_]=j,A.forEach(function(z,X){j[X]=x(z,N)}),j);default:return A}},getLanguage:function(x){for(;x;){var A=o.exec(x.className);if(A)return A[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,A){x.className=x.className.replace(RegExp(o,"gi"),""),x.classList.add("language-"+A)},isActive:function(x,A,N){for(var j="no-"+A;x;){var _=x.classList;if(_.contains(A))return!0;if(_.contains(j))return!1;x=x.parentElement}return!!N}},languages:{plain:h,plaintext:h,text:h,txt:h,extend:function(x,A){var N=v.util.clone(v.languages[x]);for(var j in A)N[j]=A[j];return N},insertBefore:function(x,A,N,j){j=j||v.languages;var _=j[x],H={};for(var z in _)if(_.hasOwnProperty(z)){if(z==A)for(var X in N)N.hasOwnProperty(X)&&(H[X]=N[X]);N.hasOwnProperty(z)||(H[z]=_[z])}var P=j[x];return j[x]=H,v.languages.DFS(v.languages,function(te,se){se===P&&te!=x&&(this[te]=H)}),H},DFS:function x(A,N,j,_){_=_||{};var H=v.util.objId;for(var z in A)if(A.hasOwnProperty(z)){N.call(A,z,A[z],j||z);var X=A[z],P=v.util.type(X);P==="Object"&&!_[H(X)]?(_[H(X)]=!0,x(X,N,null,_)):P==="Array"&&!_[H(X)]&&(_[H(X)]=!0,x(X,N,z,_))}}},plugins:{},highlight:function(x,A,N){var j={code:x,grammar:A,language:N};if(v.hooks.run("before-tokenize",j),!j.grammar)throw new Error('The language "'+j.language+'" has no grammar.');return j.tokens=v.tokenize(j.code,j.grammar),v.hooks.run("after-tokenize",j),T.stringify(v.util.encode(j.tokens),j.language)},tokenize:function(x,A){var N=A.rest;if(N){for(var j in N)A[j]=N[j];delete A.rest}var _=new w;return b(_,_.head,x),p(x,_,A,_.head,0),q(_)},hooks:{all:{},add:function(x,A){var N=v.hooks.all;N[x]=N[x]||[],N[x].push(A)},run:function(x,A){var N=v.hooks.all[x];if(!(!N||!N.length))for(var j=0,_;_=N[j++];)_(A)}},Token:T};function T(x,A,N,j){this.type=x,this.content=A,this.alias=N,this.length=(j||"").length|0}T.stringify=function x(A,N){if(typeof A=="string")return A;if(Array.isArray(A)){var j="";return A.forEach(function(P){j+=x(P,N)}),j}var _={type:A.type,content:x(A.content,N),tag:"span",classes:["token",A.type],attributes:{},language:N},H=A.alias;H&&(Array.isArray(H)?Array.prototype.push.apply(_.classes,H):_.classes.push(H)),v.hooks.run("wrap",_);var z="";for(var X in _.attributes)z+=" "+X+'="'+(_.attributes[X]||"").replace(/"/g,"&quot;")+'"';return"<"+_.tag+' class="'+_.classes.join(" ")+'"'+z+">"+_.content+"</"+_.tag+">"};function S(x,A,N,j){x.lastIndex=A;var _=x.exec(N);if(_&&j&&_[1]){var H=_[1].length;_.index+=H,_[0]=_[0].slice(H)}return _}function p(x,A,N,j,_,H){for(var z in N)if(!(!N.hasOwnProperty(z)||!N[z])){var X=N[z];X=Array.isArray(X)?X:[X];for(var P=0;P<X.length;++P){if(H&&H.cause==z+","+P)return;var te=X[P],se=te.inside,be=!!te.lookbehind,ce=!!te.greedy,ie=te.alias;if(ce&&!te.pattern.global){var Q=te.pattern.toString().match(/[imsuy]*$/)[0];te.pattern=RegExp(te.pattern.source,Q+"g")}for(var me=te.pattern||te,pe=j.next,J=_;pe!==A.tail&&!(H&&J>=H.reach);J+=pe.value.length,pe=pe.next){var y=pe.value;if(A.length>x.length)return;if(!(y instanceof T)){var G=1,K;if(ce){if(K=S(me,J,x,be),!K||K.index>=x.length)break;var $=K.index,ee=K.index+K[0].length,m=J;for(m+=pe.value.length;$>=m;)pe=pe.next,m+=pe.value.length;if(m-=pe.value.length,J=m,pe.value instanceof T)continue;for(var U=pe;U!==A.tail&&(m<ee||typeof U.value=="string");U=U.next)G++,m+=U.value.length;G--,y=x.slice(J,m),K.index-=J}else if(K=S(me,0,y,be),!K)continue;var $=K.index,I=K[0],ne=y.slice(0,$),ge=y.slice($+I.length),re=J+y.length;H&&re>H.reach&&(H.reach=re);var fe=pe.prev;ne&&(fe=b(A,fe,ne),J+=ne.length),k(A,fe,G);var le=new T(z,se?v.tokenize(I,se):I,ie,I);if(pe=b(A,fe,le),ge&&b(A,pe,ge),G>1){var Ae={cause:z+","+P,reach:re};p(x,A,N,pe.prev,J,Ae),H&&Ae.reach>H.reach&&(H.reach=Ae.reach)}}}}}}function w(){var x={value:null,prev:null,next:null},A={value:null,prev:x,next:null};x.next=A,this.head=x,this.tail=A,this.length=0}function b(x,A,N){var j=A.next,_={value:N,prev:A,next:j};return A.next=_,j.prev=_,x.length++,_}function k(x,A,N){for(var j=A.next,_=0;_<N&&j!==x.tail;_++)j=j.next;A.next=j,j.prev=A,x.length-=_}function q(x){for(var A=[],N=x.head.next;N!==x.tail;)A.push(N.value),N=N.next;return A}return v}();u.exports=f,f.default=f}}),Z=By(Hy());Z.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Z.languages.markup.tag.inside["attr-value"].inside.entity=Z.languages.markup.entity,Z.languages.markup.doctype.inside["internal-subset"].inside=Z.languages.markup,Z.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(Z.languages.markup.tag,"addInlined",{value:function(r,o){var f={},f=(f["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Z.languages[o]},f.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}}),o=(f["language-"+o]={pattern:/[\s\S]+/,inside:Z.languages[o]},{});o[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:f},Z.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Z.languages.markup.tag,"addAttribute",{value:function(r,u){Z.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[u,"language-"+u],inside:Z.languages[u]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Z.languages.html=Z.languages.markup,Z.languages.mathml=Z.languages.markup,Z.languages.svg=Z.languages.markup,Z.languages.xml=Z.languages.extend("markup",{}),Z.languages.ssml=Z.languages.xml,Z.languages.atom=Z.languages.xml,Z.languages.rss=Z.languages.xml,function(r){var u={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},f=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o="(?:[^\\\\-]|"+f.source+")",o=RegExp(o+"-"+o),g={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:f,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":u,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:f}},"special-escape":u,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":g}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:f,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":g}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Z),Z.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Z.languages.javascript=Z.languages.extend("clike",{"class-name":[Z.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Z.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Z.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Z.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Z.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Z.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Z.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Z.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Z.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Z.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Z.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Z.languages.markup&&(Z.languages.markup.tag.addInlined("script","javascript"),Z.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Z.languages.js=Z.languages.javascript,Z.languages.actionscript=Z.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Z.languages.actionscript["class-name"].alias="function",delete Z.languages.actionscript.parameter,delete Z.languages.actionscript["literal-property"],Z.languages.markup&&Z.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Z.languages.markup}}),function(r){var u=/#(?!\{).+/,f={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:u,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:f}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:u,interpolation:f}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:f}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript}(Z),function(r){var u=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(u,"addSupport",{value:function(f,o){(f=typeof f=="string"?[f]:f).forEach(function(g){var h=function(b){b.inside||(b.inside={}),b.inside.rest=o},v="doc-comment";if(T=r.languages[g]){var T,S=T[v];if((S=S||(T=r.languages.insertBefore(g,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[v])instanceof RegExp&&(S=T[v]={pattern:S}),Array.isArray(S))for(var p=0,w=S.length;p<w;p++)S[p]instanceof RegExp&&(S[p]={pattern:S[p]}),h(S[p]);else h(S)}})}}),u.addSupport(["java","javascript","php"],u)}(Z),function(r){var u=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,u=(r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+u.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+u.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+u.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+u.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:u,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup);u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))}(Z),function(r){var u=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,u=(r.languages.css.selector={pattern:r.languages.css.selector.pattern,lookbehind:!0,inside:u={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+u.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[u,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=u,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),f={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:u,number:f,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:u,number:f})}(Z),function(r){var u=/[*&][^\s[\]{},]+/,f=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+f.source+"(?:[ ]+"+u.source+")?|"+u.source+"(?:[ ]+"+f.source+")?)",g=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),h=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function v(T,S){S=(S||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return T});return RegExp(p,S)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+g+"|"+h+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:v(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:v(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:v(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:v(h),lookbehind:!0,greedy:!0},number:{pattern:v(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:f,important:u,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml}(Z),function(r){var u=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function f(p){return p=p.replace(/<inner>/g,function(){return u}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,g=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),h=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,v=(r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+g+h+"(?:"+g+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+g+h+")(?:"+g+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+g+")"+h+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+g+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:f(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:f(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:f(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:f(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(w){p!==w&&(r.languages.markdown[p].inside.content.inside[w]=r.languages.markdown[w])})}),r.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||function w(b){if(b&&typeof b!="string")for(var k=0,q=b.length;k<q;k++){var x,A=b[k];A.type!=="code"?w(A.content):(x=A.content[1],A=A.content[3],x&&A&&x.type==="code-language"&&A.type==="code-block"&&typeof x.content=="string"&&(x=x.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),x="language-"+(x=(/[a-z][\w-]*/i.exec(x)||[""])[0].toLowerCase()),A.alias?typeof A.alias=="string"?A.alias=[A.alias,x]:A.alias.push(x):A.alias=[x]))}}(p.tokens)}),r.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var w="",b=0,k=p.classes.length;b<k;b++){var q=p.classes[b],q=/language-(.+)/.exec(q);if(q){w=q[1];break}}var x,A=r.languages[w];A?p.content=r.highlight(function(N){return N=N.replace(v,""),N=N.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(j,_){var H;return(_=_.toLowerCase())[0]==="#"?(H=_[1]==="x"?parseInt(_.slice(2),16):Number(_.slice(1)),S(H)):T[_]||j})}(p.content),A,w):w&&w!=="none"&&r.plugins.autoloader&&(x="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=x,r.plugins.autoloader.loadLanguages(w,function(){var N=document.getElementById(x);N&&(N.innerHTML=r.highlight(N.textContent,r.languages[w],w))}))}}),RegExp(r.languages.markup.tag.pattern.source,"gi")),T={amp:"&",lt:"<",gt:">",quot:'"'},S=String.fromCodePoint||String.fromCharCode;r.languages.md=r.languages.markdown}(Z),Z.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Z.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Z.hooks.add("after-tokenize",function(r){if(r.language==="graphql")for(var u=r.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),f=0;f<u.length;){var o=u[f++];if(o.type==="keyword"&&o.content==="mutation"){var g=[];if(b(["definition-mutation","punctuation"])&&w(1).content==="("){f+=2;var h=k(/^\($/,/^\)$/);if(h===-1)continue;for(;f<h;f++){var v=w(0);v.type==="variable"&&(q(v,"variable-input"),g.push(v.content))}f=h+1}if(b(["punctuation","property-query"])&&w(0).content==="{"&&(f++,q(w(0),"property-mutation"),0<g.length)){var T=k(/^\{$/,/^\}$/);if(T!==-1)for(var S=f;S<T;S++){var p=u[S];p.type==="variable"&&0<=g.indexOf(p.content)&&q(p,"variable-input")}}}}function w(x){return u[f+x]}function b(x,A){A=A||0;for(var N=0;N<x.length;N++){var j=w(N+A);if(!j||j.type!==x[N])return}return 1}function k(x,A){for(var N=1,j=f;j<u.length;j++){var _=u[j],H=_.content;if(_.type==="punctuation"&&typeof H=="string"){if(x.test(H))N++;else if(A.test(H)&&--N===0)return j}}return-1}function q(x,A){var N=x.alias;N?Array.isArray(N)||(x.alias=N=[N]):x.alias=N=[],N.push(A)}}),Z.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(r){var u=r.languages.javascript["template-string"],f=u.pattern.source,o=u.inside.interpolation,g=o.inside["interpolation-punctuation"],h=o.pattern.source;function v(b,k){if(r.languages[b])return{pattern:RegExp("((?:"+k+")\\s*)"+f),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function T(b,k,q){return b={code:b,grammar:k,language:q},r.hooks.run("before-tokenize",b),b.tokens=r.tokenize(b.code,b.grammar),r.hooks.run("after-tokenize",b),b.tokens}function S(b,k,q){var N=r.tokenize(b,{interpolation:{pattern:RegExp(h),lookbehind:!0}}),x=0,A={},N=T(N.map(function(_){if(typeof _=="string")return _;for(var H,z,_=_.content;b.indexOf((z=x++,H="___"+q.toUpperCase()+"_"+z+"___"))!==-1;);return A[H]=_,H}).join(""),k,q),j=Object.keys(A);return x=0,function _(H){for(var z=0;z<H.length;z++){if(x>=j.length)return;var X,P,te,se,be,ce,ie,Q=H[z];typeof Q=="string"||typeof Q.content=="string"?(X=j[x],(ie=(ce=typeof Q=="string"?Q:Q.content).indexOf(X))!==-1&&(++x,P=ce.substring(0,ie),be=A[X],te=void 0,(se={})["interpolation-punctuation"]=g,(se=r.tokenize(be,se)).length===3&&((te=[1,1]).push.apply(te,T(se[1],r.languages.javascript,"javascript")),se.splice.apply(se,te)),te=new r.Token("interpolation",se,o.alias,be),se=ce.substring(ie+X.length),be=[],P&&be.push(P),be.push(te),se&&(_(ce=[se]),be.push.apply(be,ce)),typeof Q=="string"?(H.splice.apply(H,[z,1].concat(be)),z+=be.length-1):Q.content=be)):(ie=Q.content,Array.isArray(ie)?_(ie):_([ie]))}}(N),new r.Token(q,N,"language-"+q,b)}r.languages.javascript["template-string"]=[v("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),v("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),v("svg",/\bsvg/.source),v("markdown",/\b(?:markdown|md)/.source),v("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),v("sql",/\bsql/.source),u].filter(Boolean);var p={};function w(b){return typeof b=="string"?b:Array.isArray(b)?b.map(w).join(""):w(b.content)}r.hooks.add("after-tokenize",function(b){b.language in p&&function k(q){for(var x=0,A=q.length;x<A;x++){var N,j,_,H=q[x];typeof H!="string"&&(N=H.content,Array.isArray(N)?H.type==="template-string"?(H=N[1],N.length===3&&typeof H!="string"&&H.type==="embedded-code"&&(j=w(H),H=H.alias,H=Array.isArray(H)?H[0]:H,_=r.languages[H])&&(N[1]=S(j,_,H))):k(N):typeof N!="string"&&k([N]))}}(b.tokens)})}(Z),function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var u=r.languages.extend("typescript",{});delete u["class-name"],r.languages.typescript["class-name"].inside=u,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:u}}}}),r.languages.ts=r.languages.typescript}(Z),function(r){var u=r.languages.javascript,f=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+f+"\\s+)?)";r.languages.jsdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:u,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return f})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+f),lookbehind:!0,inside:{string:u.string,number:u.number,boolean:u.boolean,keyword:r.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:u,alias:"language-javascript"}}}}),r.languages.javadoclike.addSupport("javascript",r.languages.jsdoc)}(Z),function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Z),Z.languages.n4js=Z.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Z.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Z.languages.n4jsd=Z.languages.n4js,function(r){function u(v,T){return RegExp(v.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),T)}r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),r.languages.insertBefore("javascript","keyword",{imports:{pattern:u(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:u(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:u(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var f=["function","function-variable","method","method-variable","property-access"],o=0;o<f.length;o++){var h=f[o],g=r.languages.javascript[h],h=(g=r.util.type(g)==="RegExp"?r.languages.javascript[h]={pattern:g}:g).inside||{};(g.inside=h)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Z),function(r){var u=r.util.clone(r.languages.javascript),f=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,g=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function h(S,p){return S=S.replace(/<S>/g,function(){return f}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return g}),RegExp(S,p)}g=h(g).source,r.languages.jsx=r.languages.extend("markup",u),r.languages.jsx.tag.pattern=h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=u.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:h(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:h(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);function v(S){for(var p=[],w=0;w<S.length;w++){var b=S[w],k=!1;typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===T(b.content[0].content[1])&&p.pop():b.content[b.content.length-1].content!=="/>"&&p.push({tagName:T(b.content[0].content[1]),openedBraces:0}):0<p.length&&b.type==="punctuation"&&b.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&b.type==="punctuation"&&b.content==="}"?p[p.length-1].openedBraces--:k=!0),(k||typeof b=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(k=T(b),w<S.length-1&&(typeof S[w+1]=="string"||S[w+1].type==="plain-text")&&(k+=T(S[w+1]),S.splice(w+1,1)),0<w&&(typeof S[w-1]=="string"||S[w-1].type==="plain-text")&&(k=T(S[w-1])+k,S.splice(w-1,1),w--),S[w]=new r.Token("plain-text",k,null,k)),b.content&&typeof b.content!="string"&&v(b.content)}}var T=function(S){return S?typeof S=="string"?S:typeof S.content=="string"?S.content:S.content.map(T).join(""):""};r.hooks.add("after-tokenize",function(S){S.language!=="jsx"&&S.language!=="tsx"||v(S.tokens)})}(Z),function(r){var u=r.util.clone(r.languages.typescript),u=(r.languages.tsx=r.languages.extend("jsx",u),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"],r.languages.tsx.tag);u.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+u.pattern.source+")",u.pattern.flags),u.lookbehind=!0}(Z),Z.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Z.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=Z.languages.swift}),function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var u={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:u},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:u},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin}(Z),Z.languages.c=Z.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Z.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Z.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Z.languages.c.string],char:Z.languages.c.char,comment:Z.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Z.languages.c}}}}),Z.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Z.languages.c.boolean,Z.languages.objectivec=Z.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Z.languages.objectivec["class-name"],Z.languages.objc=Z.languages.objectivec,Z.languages.reason=Z.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),Z.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete Z.languages.reason.function,function(r){for(var u=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,f=0;f<2;f++)u=u.replace(/<self>/g,function(){return u});u=u.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+u),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string}(Z),Z.languages.go=Z.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Z.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Z.languages.go["class-name"],function(r){var u=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,f=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return u.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return u.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:u,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return f})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(Z),Z.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Z.languages.python["string-interpolation"].inside.interpolation.inside.rest=Z.languages.python,Z.languages.py=Z.languages.python,Z.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Z.languages.webmanifest=Z.languages.json;var Nt={};Ly(Nt,{dracula:()=>Gy,duotoneDark:()=>Zy,duotoneLight:()=>Xy,github:()=>Qy,gruvboxMaterialDark:()=>Em,gruvboxMaterialLight:()=>wm,jettwaveDark:()=>hm,jettwaveLight:()=>bm,nightOwl:()=>Ky,nightOwlLight:()=>Jy,oceanicNext:()=>Py,okaidia:()=>tm,oneDark:()=>mm,oneLight:()=>xm,palenight:()=>nm,shadesOfPurple:()=>im,synthwave84:()=>um,ultramin:()=>om,vsDark:()=>Bg,vsLight:()=>dm});var qy={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Gy=qy,Yy={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},Zy=Yy,Vy={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Xy=Vy,Fy={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Qy=Fy,$y={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Ky=$y,Iy={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Jy=Iy,Et={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},Wy={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Et.keyword}},{types:["attr-value"],style:{color:Et.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Et.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Et.primitive}},{types:["boolean"],style:{color:Et.boolean}},{types:["tag"],style:{color:Et.tag}},{types:["string"],style:{color:Et.string}},{types:["punctuation"],style:{color:Et.string}},{types:["selector","char","builtin","inserted"],style:{color:Et.char}},{types:["function"],style:{color:Et.function}},{types:["operator","entity","url","variable"],style:{color:Et.variable}},{types:["keyword"],style:{color:Et.keyword}},{types:["atrule","class-name"],style:{color:Et.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Py=Wy,em={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},tm=em,lm={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},nm=lm,am={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},im=am,rm={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},um=rm,sm={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},om=sm,cm={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Bg=cm,fm={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},dm=fm,gm={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},hm=gm,pm={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},bm=pm,ym={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},mm=ym,vm={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},xm=vm,Sm={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},Em=Sm,Nm={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},wm=Nm,Am=r=>L.useCallback(u=>{var f=u,{className:o,style:g,line:h}=f,v=Ug(f,["className","style","line"]);const T=cr(Vt({},v),{className:zg("token-line",o)});return typeof r=="object"&&"plain"in r&&(T.style=r.plain),typeof g=="object"&&(T.style=Vt(Vt({},T.style||{}),g)),T},[r]),Tm=r=>{const u=L.useCallback(({types:f,empty:o})=>{if(r!=null){{if(f.length===1&&f[0]==="plain")return o!=null?{display:"inline-block"}:void 0;if(f.length===1&&o!=null)return r[f[0]]}return Object.assign(o!=null?{display:"inline-block"}:{},...f.map(g=>r[g]))}},[r]);return L.useCallback(f=>{var o=f,{token:g,className:h,style:v}=o,T=Ug(o,["token","className","style"]);const S=cr(Vt({},T),{className:zg("token",...g.types,h),children:g.content,style:u(g)});return v!=null&&(S.style=Vt(Vt({},S.style||{}),v)),S},[u])},_m=/\r\n|\r|\n/,Wd=r=>{r.length===0?r.push({types:["plain"],content:`
193
+ `,empty:!0}):r.length===1&&r[0].content===""&&(r[0].content=`
194
+ `,r[0].empty=!0)},Pd=(r,u)=>{const f=r.length;return f>0&&r[f-1]===u?r:r.concat(u)},jm=r=>{const u=[[]],f=[r],o=[0],g=[r.length];let h=0,v=0,T=[];const S=[T];for(;v>-1;){for(;(h=o[v]++)<g[v];){let p,w=u[v];const k=f[v][h];if(typeof k=="string"?(w=v>0?w:["plain"],p=k):(w=Pd(w,k.type),k.alias&&(w=Pd(w,k.alias)),p=k.content),typeof p!="string"){v++,u.push(w),f.push(p),o.push(0),g.push(p.length);continue}const q=p.split(_m),x=q.length;T.push({types:w,content:q[0]});for(let A=1;A<x;A++)Wd(T),S.push(T=[]),T.push({types:w,content:q[A]})}v--,u.pop(),f.pop(),o.pop(),g.pop()}return Wd(T),S},eg=jm,Cm=({prism:r,code:u,grammar:f,language:o})=>L.useMemo(()=>{if(f==null)return eg([u]);const g={code:u,grammar:f,language:o,tokens:[]};return r.hooks.run("before-tokenize",g),g.tokens=r.tokenize(u,f),r.hooks.run("after-tokenize",g),eg(g.tokens)},[u,f,o,r]),km=(r,u)=>{const{plain:f}=r,o=r.styles.reduce((g,h)=>{const{languages:v,style:T}=h;return v&&!v.includes(u)||h.types.forEach(S=>{const p=Vt(Vt({},g[S]),T);g[S]=p}),g},{});return o.root=f,o.plain=cr(Vt({},f),{backgroundColor:void 0}),o},Om=km,Dm=({children:r,language:u,code:f,theme:o,prism:g})=>{const h=u.toLowerCase(),v=Om(o,h),T=Am(v),S=Tm(v),p=g.languages[h],w=Cm({prism:g,language:h,code:f,grammar:p});return r({tokens:w,className:`prism-code language-${h}`,style:v!=null?v.root:{},getLineProps:T,getTokenProps:S})},Rm=r=>L.createElement(Dm,cr(Vt({},r),{prism:r.prism||Z,theme:r.theme||Bg,code:r.code,language:r.language}));/*! Bundled license information:
195
+
196
+ prismjs/prism.js:
197
+ (**
198
+ * Prism: Lightweight, robust, elegant syntax highlighting
199
+ *
200
+ * @license MIT <https://opensource.org/licenses/MIT>
201
+ * @author Lea Verou <https://lea.verou.me>
202
+ * @namespace
203
+ * @public
204
+ *)
205
+ */const zm="modulepreload",Mm=function(r){return"/"+r},tg={},dt=function(u,f,o){let g=Promise.resolve();if(f&&f.length>0){let S=function(p){return Promise.all(p.map(w=>Promise.resolve(w).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const v=document.querySelector("meta[property=csp-nonce]"),T=v?.nonce||v?.getAttribute("nonce");g=S(f.map(p=>{if(p=Mm(p),p in tg)return;tg[p]=!0;const w=p.endsWith(".css"),b=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const k=document.createElement("link");if(k.rel=w?"stylesheet":zm,w||(k.as="script"),k.crossOrigin="",k.href=p,T&&k.setAttribute("nonce",T),document.head.appendChild(k),w)return new Promise((q,x)=>{k.addEventListener("load",q),k.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function h(v){const T=new Event("vite:preloadError",{cancelable:!0});if(T.payload=v,window.dispatchEvent(T),!T.defaultPrevented)throw v}return g.then(v=>{for(const T of v||[])T.status==="rejected"&&h(T.reason);return u().catch(h)})},ir={};function Hg(r){if(!ir[r]){const f={bash:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await dt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),dt(()=>import("./prism-php-COdrRzRl.js").then(o=>o.p),[])),sql:()=>dt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>dt(()=>import("./prism-ruby-ig7xCRi-.js").then(o=>o.p),[]),java:()=>dt(()=>import("./prism-java-IqkDgVxE.js").then(o=>o.p),[]),scala:async()=>(await Hg("java"),dt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>dt(()=>import("./prism-solidity-lkGQYrB_.js").then(o=>o.p),[]),vim:()=>dt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>dt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>dt(()=>import("./prism-csharp-B-CFRzGF.js").then(o=>o.p),[]),protobuf:()=>dt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[])}[r];if(!f)return console.warn(`No loader available for language: ${r}`),Promise.reject(new Error(`Unsupported language: ${r}`));ir[r]=f().then(()=>{}).catch(o=>{throw delete ir[r],console.warn(`Failed to load language: ${r}`,o),o})}return ir[r]}typeof global<"u"?global.Prism=Z:typeof window<"u"&&(window.Prism=Z);const lg=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function Lm(r,u){const[f,o]=L.useState(()=>lg.includes(u)||!!Z.languages[u]);return L.useEffect(()=>{if(!f){if(lg.includes(u)){o(!0);return}Hg(u).then(()=>{o(!0)}).catch(()=>{o(!1)})}},[u,f]),{ready:f,actualLang:f?u:"text"}}const ng=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],ag=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function Um(r){return{...r,styles:r.styles.map(u=>({...u,style:{...u.style,background:void 0,backgroundColor:void 0}}))}}function Bm(r){let u;switch(r){case"github":u=Nt.github;break;case"vsLight":u=Nt.vsLight;break;case"oneLight":u=Nt.oneLight;break;case"gruvboxMaterialLight":u=Nt.gruvboxMaterialLight;break;case"nightOwlLight":u=Nt.nightOwlLight;break;case"vsDark":u=Nt.vsDark;break;case"oneDark":u=Nt.oneDark;break;case"gruvboxMaterialDark":u=Nt.gruvboxMaterialDark;break;case"nightOwl":u=Nt.nightOwl;break;case"dracula":u=Nt.dracula;break;case"okaidia":u=Nt.okaidia;break;default:u=Nt.vsDark}return Um(u)}function Hm(r){const u=Sy(r).toLowerCase(),f=kg(r),o={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return o[u]?o[u]:{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",perl:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf"}[f||""]||"text"}const qm=en.memo(function({code:u,language:f,className:o,syntaxTheme:g="vsDark",filename:h="",renderToken:v,onMouseOver:T,onMouseOut:S}){const p=f||(h?Hm(h):"text"),{actualLang:w}=Lm(u,p),b=Bm(g),k=L.useCallback(({style:q,tokens:x,getLineProps:A,getTokenProps:N})=>s.jsx("span",{className:o,style:{...q,background:"transparent",backgroundColor:"transparent"},onMouseOver:T,onMouseOut:S,children:x.map((j,_)=>s.jsx("span",{...A({line:j}),children:j.map((H,z)=>v?v(H,z,N):s.jsx("span",{...N({token:H})},z))},_))}),[o,T,S,v]);return s.jsx(Rm,{code:u,language:w,theme:b,prism:Z,children:k})}),Us=en.memo(function(u){const{handleMouseOver:f,handleMouseOut:o,isWordHighlighted:g}=Cy(),h=L.useCallback((v,T,S)=>{const p=S({token:v}),w=v.content.split(/( +)/);if(w.length===1&&w[0]&&!Id(w[0]))return s.jsx("span",{...p},T);const b=w.map((k,q)=>{if(!k)return null;if(Id(k)){const x=k.trim(),A=g(x);return s.jsx("span",{className:`word-token ${A?"word-highlight":""}`,"data-word":x,children:k},`${T}-${q}`)}return s.jsx("span",{children:k},`${T}-${q}`)});return s.jsx("span",{...p,children:b},T)},[g]);return s.jsx(qm,{...u,renderToken:h,onMouseOver:f,onMouseOut:o})}),Gm=r=>{switch(r.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},Ym=r=>{switch(r.type){case"add":return"+";case"delete":return"-";default:return" "}},qg=en.memo(({line:r,lineId:u,isCurrentLine:f=!1,hoveredLine:o,selectedLineStyle:g,onMouseEnter:h,onMouseLeave:v,onMouseMove:T,onCommentButtonMouseDown:S,onCommentButtonMouseUp:p,syntaxTheme:w,onClick:b,filename:k})=>{const q=r.newLineNumber||r.oldLineNumber,x=o===q&&q,A=f?"keyboard-cursor":"";return s.jsxs("tr",{id:u,className:`group ${Gm(r)} relative ${g} ${A} cursor-pointer`,onMouseEnter:h,onMouseLeave:v,onMouseMove:T,onClick:b,children:[s.jsx("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:r.oldLineNumber||""}),s.jsxs("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[s.jsx("span",{className:"pr-5",children:r.newLineNumber||""}),x&&s.jsx(rr,{onMouseDown:S,onMouseUp:p})]}),s.jsx("td",{className:"p-0 w-full relative align-top",children:s.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[s.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${r.type==="add"?"text-github-accent bg-diff-addition-bg":r.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:Ym(r)}),s.jsx(Us,{code:r.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:w,filename:k})]})})]})});qg.displayName="DiffLineRow";function Zm({chunk:r,chunkIndex:u,comments:f,onAddComment:o,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:v,syntaxTheme:T,cursor:S=null,fileIndex:p=0,onLineClick:w,commentTrigger:b,onCommentTriggerHandled:k,filename:q}){const[x,A]=L.useState(null),[N,j]=L.useState(null),[_,H]=L.useState(!1),[z,X]=L.useState(null),[P,te]=L.useState(null);L.useEffect(()=>{if(b?.lineIndex!==void 0){const y=r.lines[b.lineIndex];if(y&&y.type!=="delete"){const G=y.newLineNumber;G&&(X({side:"new",lineNumber:G}),k?.())}}},[b,r.lines,k]),L.useEffect(()=>{if(_){const y=()=>{H(!1),A(null),j(null)};return document.addEventListener("mouseup",y),()=>{document.removeEventListener("mouseup",y)}}},[_]);const se=L.useCallback((y,G)=>{z?.side===y&&z?.lineNumber===G?X(null):X({side:y,lineNumber:G})},[z]),be=L.useCallback(()=>{X(null)},[]),ce=L.useCallback(async y=>{z!==null&&(await o(z.lineNumber,y,void 0,z.side),X(null))},[z,o]),ie=y=>f.filter(G=>Array.isArray(G.line)?G.line[1]===y:G.line===y),Q=y=>y.oldLine?.type==="delete"&&y.newLine?.type==="add"?y.newLineNumber?"right":"left":y.oldLine?.type==="delete"?"left":y.newLine?.type==="add"?"right":"full",me=(y,G)=>{const K=y==="old"?G.oldLineNumber:G.newLineNumber;if(!K)return"";if(_&&x&&N&&x.side===y&&N.side===y){const ee=Math.min(x.lineNumber,N.lineNumber),m=Math.max(x.lineNumber,N.lineNumber);if(K>=ee&&K<=m){let U="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return K===ee&&(U+=" after:border-t-2"),K===m&&(U+=" after:border-b-2"),U}}if(z&&z.side===y){const ee=Array.isArray(z.lineNumber)?z.lineNumber:[z.lineNumber,z.lineNumber],m=ee[0],U=ee[1];if(m!==void 0&&U!==void 0&&K>=m&&K<=U)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},J=(y=>{const G=[];let K=r.oldStart,ee=r.newStart,m=0;for(;m<y.length;){const U=y[m];if(!U){m++;continue}if(U.type==="normal")G.push({oldLine:U,newLine:{...U},oldLineNumber:U.oldLineNumber??K,newLineNumber:U.newLineNumber??ee,oldLineOriginalIndex:m,newLineOriginalIndex:m}),K++,ee++,m++;else if(U.type==="delete"){let $=m+1;for(;$<y.length&&y[$]?.type==="delete";)$++;const I=y.slice(m,$),ne=m,ge=[],re=$;for(;$<y.length&&y[$]?.type==="add";){const le=y[$];le&&ge.push(le),$++}const fe=Math.max(I.length,ge.length);for(let le=0;le<fe;le++){const Ae=I[le],qe=ge[le];G.push({oldLine:Ae,newLine:qe,oldLineNumber:Ae?Ae.oldLineNumber??K+le:void 0,newLineNumber:qe?qe.newLineNumber??ee+le:void 0,oldLineOriginalIndex:Ae?ne+le:void 0,newLineOriginalIndex:qe?re+le:void 0})}K+=I.length,ee+=ge.length,m=$}else U.type==="add"&&(G.push({newLine:U,newLineNumber:U.newLineNumber??ee,newLineOriginalIndex:m}),ee++,m++)}return G})(r.lines);return s.jsx("div",{className:"bg-github-bg-primary border border-github-border rounded-md overflow-hidden",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:J.map((y,G)=>{const K=y.newLineNumber?ie(y.newLineNumber):y.oldLineNumber?ie(y.oldLineNumber):[],ee=y.oldLineOriginalIndex??-1,m=y.newLineOriginalIndex??-1,U=S?S.side==="left"&&ee>=0?S.chunkIndex===u&&S.lineIndex===ee:S.side==="right"&&m>=0?S.chunkIndex===u&&S.lineIndex===m:!1:!1,$=ee>=0?`file-${p}-chunk-${u}-line-${ee}-left`:void 0,I=m>=0?`file-${p}-chunk-${u}-line-${m}-right`:void 0,ne=U&&S?.side==="left",ge=U&&S?.side==="right",re="keyboard-cursor";return s.jsxs(en.Fragment,{children:[s.jsxs("tr",{className:"group cursor-pointer",onClick:fe=>{if(!_){const le=fe.target,Ae=le.closest("td:nth-child(1)")||le.closest("td:nth-child(2)"),qe=le.closest("td:nth-child(3)")||le.closest("td:nth-child(4)");Ae&&ee>=0?w?.(p,u,ee,"left"):qe&&m>=0&&w?.(p,u,m,"right")}},onMouseEnter:fe=>{const le=fe.target,Ae=le.closest("td:nth-child(1)")||le.closest("td:nth-child(2)"),qe=le.closest("td:nth-child(3)")||le.closest("td:nth-child(4)");Ae&&y.oldLineNumber?te({side:"old",lineNumber:y.oldLineNumber}):qe&&y.newLineNumber&&te({side:"new",lineNumber:y.newLineNumber})},onMouseMove:fe=>{const le=fe.target,Ae=le.closest("td:nth-child(1)")||le.closest("td:nth-child(2)"),qe=le.closest("td:nth-child(3)")||le.closest("td:nth-child(4)");Ae&&y.oldLineNumber?(P?.side!=="old"||P?.lineNumber!==y.oldLineNumber)&&te({side:"old",lineNumber:y.oldLineNumber}):qe&&y.newLineNumber&&(P?.side!=="new"||P?.lineNumber!==y.newLineNumber)&&te({side:"new",lineNumber:y.newLineNumber}),_&&x&&(x.side==="old"&&y.oldLineNumber?j({side:"old",lineNumber:y.oldLineNumber}):x.side==="new"&&y.newLineNumber&&j({side:"new",lineNumber:y.newLineNumber}))},onMouseLeave:()=>te(null),children:[s.jsxs("td",{id:$,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ne?re:""}`,children:[s.jsx("span",{className:"pr-5",children:y.oldLineNumber||""}),P?.side==="old"&&P?.lineNumber===y.oldLineNumber&&s.jsx(rr,{onMouseDown:fe=>{fe.stopPropagation(),y.oldLineNumber&&(A({side:"old",lineNumber:y.oldLineNumber}),j({side:"old",lineNumber:y.oldLineNumber}),H(!0))},onMouseUp:fe=>{if(fe.stopPropagation(),!y.oldLineNumber||!x){H(!1),A(null),j(null);return}const le=N&&N.side==="old"?N.lineNumber:y.oldLineNumber;if(x.side!=="old"||x.lineNumber===le)se("old",y.oldLineNumber);else{const Ae=Math.min(x.lineNumber,le),qe=Math.max(x.lineNumber,le);se("old",[Ae,qe])}H(!1),A(null),j(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${y.oldLine?.type==="delete"?"bg-diff-deletion-bg":y.oldLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${me("old",y)} ${ne?re:""}`,children:y.oldLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Us,{code:y.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:T,filename:q})})}),s.jsxs("td",{id:I,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ge?re:""}`,children:[s.jsx("span",{className:"pr-5",children:y.newLineNumber||""}),P?.side==="new"&&P?.lineNumber===y.newLineNumber&&s.jsx(rr,{onMouseDown:fe=>{fe.stopPropagation(),y.newLineNumber&&(A({side:"new",lineNumber:y.newLineNumber}),j({side:"new",lineNumber:y.newLineNumber}),H(!0))},onMouseUp:fe=>{if(fe.stopPropagation(),!y.newLineNumber||!x){H(!1),A(null),j(null);return}const le=N&&N.side==="new"?N.lineNumber:y.newLineNumber;if(x.side!=="new"||x.lineNumber===le)se("new",y.newLineNumber);else{const Ae=Math.min(x.lineNumber,le),qe=Math.max(x.lineNumber,le);se("new",[Ae,qe])}H(!1),A(null),j(null)}})]}),s.jsx("td",{className:`w-1/2 p-0 align-top relative ${y.newLine?.type==="add"?"bg-diff-addition-bg":y.newLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${me("new",y)} ${ge?re:""}`,children:y.newLine&&s.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:s.jsx(Us,{code:y.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:T,filename:q})})})]}),K.length>0&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:K.map(fe=>{const le=Q(y);return s.jsx("div",{className:`flex ${le==="left"?"justify-start":le==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${le==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:s.jsx(Vs,{comment:fe,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:v})})},fe.id)})})}),z&&(z.side==="old"&&z.lineNumber===y.oldLineNumber||z.side==="new"&&z.lineNumber===y.newLineNumber||Array.isArray(z.lineNumber)&&(z.side==="new"&&z.lineNumber[1]===y.newLineNumber||z.side==="old"&&z.lineNumber[1]===y.oldLineNumber))&&s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:4,className:"p-0",children:s.jsx("div",{className:`flex ${Q(y)==="left"?"justify-start":Q(y)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${Q(y)==="full"?"w-full":"w-1/2"}`,children:s.jsx(Og,{onSubmit:ce,onCancel:be})})})})})]},G)})})})})}function Vm({chunk:r,chunkIndex:u,comments:f,onAddComment:o,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:v,mode:T="inline",syntaxTheme:S,cursor:p=null,fileIndex:w=0,onLineClick:b,commentTrigger:k,onCommentTriggerHandled:q,filename:x}){const[A,N]=L.useState(null),[j,_]=L.useState(null),[H,z]=L.useState(!1),[X,P]=L.useState(null),[te,se]=L.useState(null);L.useEffect(()=>{if(k?.lineIndex!==void 0){const J=r.lines[k.lineIndex];if(J){const y=J.newLineNumber||J.oldLineNumber;y&&(P(y),q?.())}}},[k,r.lines,q]),L.useEffect(()=>{if(H){const J=()=>{z(!1),N(null),_(null)};return document.addEventListener("mouseup",J),()=>{document.removeEventListener("mouseup",J)}}},[H]);const be=L.useCallback(J=>{P(X===J?null:J)},[X]),ce=L.useCallback(()=>{P(null)},[]),ie=L.useCallback(async J=>{if(X!==null){let y;if(Array.isArray(X)){const G=X[0],K=X[1],ee=r.lines.filter($=>{const I=$.newLineNumber||$.oldLineNumber;return I&&I>=G&&I<=K}),m=ee.some($=>$.type==="delete"||$.type==="normal"&&$.oldLineNumber),U=ee.some($=>$.type==="add"||$.type==="normal"&&$.newLineNumber);m&&!U?y="old":U&&(y="new")}else{const G=r.lines.find(K=>K.newLineNumber===X||K.oldLineNumber===X);G&&(G.type==="delete"?y="old":(G.type==="add"||G.type==="normal")&&(y="new"))}await o(X,J,void 0,y),P(null)}},[X,o,r.lines]),Q=J=>f.filter(y=>Array.isArray(y.line)?y.line[1]===J:y.line===J),me=J=>{if(T==="inline")return"full";switch(J.type){case"delete":return"left";case"add":return"right";default:return"full"}},pe=J=>{if(!J)return"";if(H&&A&&j){const y=Math.min(A,j),G=Math.max(A,j);if(J>=y&&J<=G){let K="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return J===y&&(K+=" after:border-t-2"),J===G&&(K+=" after:border-b-2"),K}}if(X){const y=Array.isArray(X)?X[0]:X,G=Array.isArray(X)?X[1]:X;if(J>=y&&J<=G)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""};return T==="side-by-side"?s.jsx(Zm,{chunk:r,chunkIndex:u,comments:f,onAddComment:o,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:v,syntaxTheme:S,cursor:p,fileIndex:w,onLineClick:b,filename:x,commentTrigger:k,onCommentTriggerHandled:q}):s.jsx("div",{className:"bg-github-bg-primary",children:s.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:s.jsx("tbody",{children:r.lines.map((J,y)=>{const G=Q(J.newLineNumber||J.oldLineNumber||0),K=`file-${w}-chunk-${u}-line-${y}`,ee=p&&p.chunkIndex===u&&p.lineIndex===y;return s.jsxs(en.Fragment,{children:[s.jsx(qg,{line:J,index:y,lineId:K,isCurrentLine:ee||!1,hoveredLine:te,selectedLineStyle:pe(J.newLineNumber||J.oldLineNumber),onMouseEnter:()=>{const m=J.newLineNumber||J.oldLineNumber;m&&se(m)},onMouseLeave:()=>se(null),onMouseMove:()=>{if(H&&A){const m=J.newLineNumber||J.oldLineNumber;m&&_(m)}},onCommentButtonMouseDown:m=>{m.stopPropagation();const U=J.newLineNumber||J.oldLineNumber;U&&(N(U),_(U),z(!0))},onCommentButtonMouseUp:m=>{m.stopPropagation();const U=J.newLineNumber||J.oldLineNumber;if(!U||!A){z(!1),N(null),_(null);return}const $=j||U;if(A===$)be(U);else{const I=Math.min(A,$),ne=Math.max(A,$);be([I,ne])}z(!1),N(null),_(null)},syntaxTheme:S,filename:x,onClick:()=>{const m=J.type==="delete"?"left":"right";b?.(w,u,y,m)}}),G.map(m=>{const U=me(J);return s.jsx("tr",{className:"bg-github-bg-secondary",children:s.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:s.jsx("div",{className:`flex ${U==="left"?"justify-start":U==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${U==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:s.jsx(Vs,{comment:m,onGeneratePrompt:g,onRemoveComment:h,onUpdateComment:v})})})})},m.id)}),X&&(X===(J.newLineNumber||J.oldLineNumber)||Array.isArray(X)&&X[1]===(J.newLineNumber||J.oldLineNumber))&&s.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:s.jsx("td",{colSpan:3,className:"p-0",children:s.jsx("div",{className:`flex ${me(J)==="left"?"justify-start":me(J)==="right"?"justify-end":"justify-center"}`,children:s.jsx("div",{className:`${me(J)==="full"?"w-full":"w-1/2"}`,children:s.jsx(Og,{onSubmit:ie,onCancel:ce})})})})})]},y)})})})})}function Xm({file:r,mode:u="inline",baseCommitish:f,targetCommitish:o}){const g=r.status==="deleted",h=r.status==="added",v=r.status==="modified"||r.status==="renamed",T=f||"HEAD~1",S=o||"HEAD",[p,w]=L.useState({}),[b,k]=L.useState({}),q=async(j,_)=>{try{const H=j.naturalWidth,z=j.naturalHeight,te=(await(await fetch(j.src)).blob()).size;_({width:H,height:z,size:te})}catch(H){console.error("Failed to get image info:",H)}},x=j=>j?j<1024?`${j} B`:j<1024*1024?`${(j/1024).toFixed(1)} KB`:`${(j/(1024*1024)).toFixed(1)} MB`:"",A=j=>!j.width||!j.height?"":`W: ${j.width}px | H: ${j.height}px`,N={backgroundImage:`
206
+ linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
207
+ linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
208
+ `,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return g?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,w),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(p.width||p.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(p),A(p)&&x(p.size)&&" | ",x(p.size)]})]})]})}):h?s.jsx("div",{className:"bg-github-bg-primary p-4",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-2",children:s.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),s.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`New image ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,k),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&x(b.size)&&" | ",x(b.size)]})]})]})}):v?u==="side-by-side"?s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,w),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(p.width||p.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(p),A(p)&&x(p.size)&&" | ",x(p.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,k),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&x(b.size)&&" | ",x(b.size)]})]})})]})]}):s.jsxs("div",{className:"bg-github-bg-primary p-4",children:[s.jsx("div",{className:"text-center mb-4",children:s.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),s.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${T}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,w),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(p.width||p.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(p),A(p)&&x(p.size)&&" | ",x(p.size)]})]})}),s.jsx("div",{className:"text-center",children:s.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[s.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),s.jsx("img",{src:`/api/blob/${r.path}?ref=${S}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:N,onLoad:j=>q(j.currentTarget,k),onError:j=>{const _=j.target;_.style.display="none",_.nextElementSibling?.classList.remove("hidden")}}),s.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&s.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&x(b.size)&&" | ",x(b.size)]})]})})]})]}):null}function Fm({file:r,comments:u,diffMode:f,reviewedFiles:o,onToggleReviewed:g,onAddComment:h,onGeneratePrompt:v,onRemoveComment:T,onUpdateComment:S,syntaxTheme:p,baseCommitish:w,targetCommitish:b,cursor:k=null,fileIndex:q=0,onLineClick:x,commentTrigger:A,onCommentTriggerHandled:N}){const j=o.has(r.path),[_,H]=L.useState(!1),z=P=>{switch(P){case"added":return s.jsx(Ag,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(Tg,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(wg,{size:16,className:"text-github-warning"});default:return s.jsx(Ng,{size:16,className:"text-github-text-secondary"})}},X=async(P,te,se,be,ce)=>{try{await h(r.path,P,te,se,be,ce)}catch(ie){console.error("Failed to add comment:",ie)}};return s.jsxs("div",{className:"bg-github-bg-primary",children:[s.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>g(r.path),className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:j?"Expand file":"Collapse file",children:j?s.jsx(Sg,{size:16}):s.jsx(Ys,{size:16})}),z(r.status),s.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:r.path}),s.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${_?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(r.path).then(()=>{console.log("File path copied to clipboard:",r.path),H(!0),setTimeout(()=>H(!1),2e3)}).catch(P=>{console.error("Failed to copy file path:",P)})},title:"Copy file path",children:_?s.jsx(Va,{size:14}):s.jsx(Eg,{size:14})}),r.oldPath&&r.oldPath!==r.path&&s.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",r.oldPath,")"]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",r.additions]}),s.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",r.deletions]})]}),s.jsxs("button",{onClick:()=>g(r.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${o.has(r.path)?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:o.has(r.path)?"Mark as not reviewed":"Mark as reviewed",children:[o.has(r.path)?s.jsx(Va,{size:14}):s.jsx(yy,{size:14}),"Viewed"]})]})]}),!j&&s.jsx("div",{className:"overflow-y-auto",children:Ny(r.path)?s.jsx(Xm,{file:r,mode:f,baseCommitish:w,targetCommitish:b}):r.chunks.map((P,te)=>s.jsxs("div",{id:`chunk-${r.path.replace(/[^a-zA-Z0-9]/g,"-")}-${te}`,className:"border-b border-github-border",children:[s.jsx("div",{className:"bg-github-bg-tertiary px-3 py-2 border-b border-github-border",children:s.jsx("code",{className:"text-github-text-secondary text-xs font-mono",children:P.header})}),s.jsx(Vm,{chunk:P,chunkIndex:te,comments:u,onAddComment:(se,be,ce,ie)=>X(se,be,ce,P.header,ie),onGeneratePrompt:v,onRemoveComment:T,onUpdateComment:S,mode:f,syntaxTheme:p,cursor:k,fileIndex:q,onLineClick:x,commentTrigger:A?.chunkIndex===te?A:null,onCommentTriggerHandled:N,filename:r.path})]},te))})]})}function Qm(r){const u={name:"",path:"",isDirectory:!0,children:[]};r.forEach(o=>{const g=o.path.split("/");let h=u;for(let v=0;v<g.length;v++){const T=g[v];if(!T)continue;const S=v===g.length-1,p=g.slice(0,v+1).join("/");h.children||(h.children=[]);let w=h.children.find(b=>b.name===T);w||(w={name:T,path:p,isDirectory:!S,children:S?void 0:[],file:S?o:void 0},h.children.push(w)),h=w}});const f=o=>{if(!o.isDirectory||!o.children)return o;if(o.children=o.children.map(f),o.children.length===1&&o.children[0]?.isDirectory&&o.children[0]?.children){const g=o.children[0];if(g)return o.name?{...o,name:`${o.name}/${g.name}`,path:g.path,children:g.children}:o}return o};return f(u)}function $m({files:r,onScrollToFile:u,comments:f,reviewedFiles:o,onToggleReviewed:g,selectedFileIndex:h}){const v=Qm(r),T=_=>{if(!_.isDirectory||!_.children)return[];const H=[];return _.path&&H.push(_.path),_.children.forEach(z=>{H.push(...T(z))}),H},[S,p]=L.useState(()=>new Set(T(v))),[w,b]=L.useState(""),k=_=>f.filter(H=>H.file===_).length,q=_=>{if(!w.trim())return _;if(_.isDirectory&&_.children){const H=_.children.map(z=>q(z)).filter(z=>z!==null);return H.length>0?{..._,children:H}:null}else if(_.file)return _.file.path.toLowerCase().includes(w.toLowerCase())?_:null;return null},x=q(v)||{...v,children:[]},A=_=>{switch(_){case"added":return s.jsx(Ag,{size:16,className:"text-github-accent"});case"deleted":return s.jsx(Tg,{size:16,className:"text-github-danger"});case"renamed":return s.jsx(wg,{size:16,className:"text-github-warning"});default:return s.jsx(Ng,{size:16,className:"text-github-text-secondary"})}},N=_=>{p(H=>{const z=new Set(H);return z.has(_)?z.delete(_):z.add(_),z})},j=(_,H=0)=>{if(_.isDirectory&&_.children){const z=S.has(_.path);return s.jsxs("div",{children:[_.name&&s.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${H*16+16}px`},onClick:()=>N(_.path),children:[z?s.jsx(Ys,{size:16}):s.jsx(Sg,{size:16}),z?s.jsx(Jb,{size:16,className:"text-github-text-secondary"}):s.jsx(Pb,{size:16,className:"text-github-text-secondary"}),s.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:_.name,children:_.name})]}),(z||!_.name)&&_.children.map(X=>j(X,H+1))]},_.path)}else if(_.file){const z=_.file,X=k(z.path),P=o.has(z.path),te=r.findIndex(be=>be.path===z.path),se=h!==null&&h===te;return s.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${P?"opacity-70":""} ${se?"bg-github-bg-tertiary":""}`,style:{paddingLeft:`${H*16+16}px`},onClick:()=>u(z.path),children:[s.jsx(Cg,{checked:P,onChange:()=>{g(z.path)},title:P?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),A(_.file.status),s.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${P?"line-through text-github-text-muted":""}`,title:_.file.path,children:_.name}),X>0&&s.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[s.jsx(_g,{size:14}),X]})]},z.path)}return null};return s.jsxs("div",{className:"h-full flex flex-col",children:[s.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[s.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0 mb-3",children:["Files changed (",r.length,")"]}),s.jsxs("div",{className:"relative",children:[s.jsx(hy,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),s.jsx("input",{type:"text",placeholder:"Filter files...",value:w,onChange:_=>b(_.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto",children:x.children?.map(_=>j(_))})]})}function Km({style:r}){return s.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:r,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function Im({isOpen:r,onClose:u}){const{enableScope:f,disableScope:o}=sr();return ze("escape",()=>u(),{enabled:r},[u,r]),L.useEffect(()=>(r?o("navigation"):f("navigation"),()=>{f("navigation")}),[r,f,o]),r?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:u}),s.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[s.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),s.jsx("button",{onClick:u,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:s.jsx(Zs,{size:20})})]}),s.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),s.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),s.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex gap-2",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),s.jsxs("div",{className:"space-y-1",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),s.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),s.jsx("span",{className:"text-github-text-muted",children:"+"}),s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),s.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),s.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),s.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),s.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),s.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:s.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function Jm({style:r}){return s.jsxs("svg",{style:r,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function Wm({shouldReload:r,isReloading:u,onReload:f,changeType:o,className:g=""}){if(!r)return null;const h=()=>{switch(o){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return s.jsxs("button",{onClick:f,disabled:u,className:`
209
+ flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border ${g}
210
+ ${u?"bg-github-text-primary text-github-bg-primary border-github-text-primary cursor-not-allowed":"bg-github-text-primary text-github-bg-primary border-github-text-primary"}
211
+ `,title:`${h()} - Click to refresh`,children:[s.jsx(dy,{size:12,className:`${u?"animate-spin":""}`}),"Refresh"]})}const Pm={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},e0=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function t0({isOpen:r,onClose:u,settings:f,onSettingsChange:o}){const[g,h]=L.useState(f),{enableScope:v,disableScope:T}=sr();L.useEffect(()=>{h(f)},[f]),L.useEffect(()=>{o(g)},[g,o]),L.useEffect(()=>(r?T("navigation"):v("navigation"),()=>{v("navigation")}),[r,v,T]);const S=()=>g.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":g.theme,p=()=>S()==="light"?ng:ag,w=k=>{const q={...g,theme:k},A=(k==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":k)==="light"?ng:ag;if(!A.some(j=>j.id===g.syntaxTheme)&&A.length>0){const j=A[0];j&&(q.syntaxTheme=j.id)}h(q)},b=()=>{h(Pm)};return r?s.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:s.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[s.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[s.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[s.jsx(jg,{size:20}),"Appearance Settings"]}),s.jsx("button",{onClick:u,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:s.jsx(Zs,{size:18})})]}),s.jsxs("div",{className:"p-4 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:g.fontSize,onChange:k=>h({...g,fontSize:parseInt(k.target.value)}),className:"flex-1 accent-github-accent"}),s.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[g.fontSize,"px"]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),s.jsx("select",{value:g.fontFamily,onChange:k=>h({...g,fontFamily:k.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:e0.map(k=>s.jsx("option",{value:k.value,children:k.name},k.value))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),s.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(k=>s.jsx("button",{onClick:()=>w(k),className:`px-3 py-2 text-sm rounded border transition-colors ${g.theme===k?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:k.charAt(0).toUpperCase()+k.slice(1)},k))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),s.jsx("select",{value:g.syntaxTheme,onChange:k=>h({...g,syntaxTheme:k.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:p().map(k=>s.jsx("option",{value:k.id,children:k.label},k.id))})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[s.jsx("button",{onClick:b,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),s.jsx("button",{onClick:u,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const ig={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},l0=({isActive:r})=>r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"animate-sparkle-rise",style:{...ig,left:"-12px",animationDelay:"0s"},children:"✨"}),s.jsx("div",{className:"animate-sparkle-rise",style:{...ig,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,rg={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},ug="reviewit-appearance-settings";function n0(){const[r,u]=L.useState(rg);L.useEffect(()=>{try{const g=localStorage.getItem(ug);if(g){const h=JSON.parse(g);u({...rg,...h})}}catch(g){console.warn("Failed to load appearance settings from localStorage:",g)}},[]),L.useEffect(()=>{const g=document.documentElement;if(g.style.setProperty("--app-font-size",`${r.fontSize}px`),g.style.setProperty("--app-font-family",r.fontFamily),r.theme==="auto"){const h=window.matchMedia("(prefers-color-scheme: dark)");f(h.matches?"dark":"light");const v=T=>{f(T.matches?"dark":"light")};return h.addEventListener("change",v),()=>h.removeEventListener("change",v)}else{f(r.theme);return}},[r]);const f=g=>{const h=document.documentElement;h.setAttribute("data-theme",g),g==="light"?(h.style.setProperty("--color-github-bg-primary","#ffffff"),h.style.setProperty("--color-github-bg-secondary","#f6f8fa"),h.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),h.style.setProperty("--color-github-border","#d1d9e0"),h.style.setProperty("--color-github-text-primary","#24292f"),h.style.setProperty("--color-github-text-secondary","#656d76"),h.style.setProperty("--color-github-text-muted","#8c959f"),h.style.setProperty("--color-github-accent","#1f883d"),h.style.setProperty("--color-github-danger","#cf222e"),h.style.setProperty("--color-github-warning","#bf8700"),h.style.setProperty("--color-diff-addition-bg","#d1f4cd"),h.style.setProperty("--color-diff-addition-border","#1f883d"),h.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),h.style.setProperty("--color-diff-deletion-border","#cf222e"),h.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),h.style.setProperty("--color-comment-bg","#fff8e1"),h.style.setProperty("--color-comment-border","#ffd54f"),h.style.setProperty("--color-comment-text","#5d4037"),h.style.setProperty("--color-yellow-btn-bg","#fef3c7"),h.style.setProperty("--color-yellow-btn-border","#f59e0b"),h.style.setProperty("--color-yellow-btn-text","#92400e"),h.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),h.style.setProperty("--color-yellow-btn-hover-border","#d97706"),h.style.setProperty("--color-yellow-path-bg","#fde68a"),h.style.setProperty("--color-yellow-path-text","#92400e")):(h.style.setProperty("--color-github-bg-primary","#0d1117"),h.style.setProperty("--color-github-bg-secondary","#161b22"),h.style.setProperty("--color-github-bg-tertiary","#21262d"),h.style.setProperty("--color-github-border","#30363d"),h.style.setProperty("--color-github-text-primary","#f0f6fc"),h.style.setProperty("--color-github-text-secondary","#8b949e"),h.style.setProperty("--color-github-text-muted","#6e7681"),h.style.setProperty("--color-github-accent","#238636"),h.style.setProperty("--color-github-danger","#da3633"),h.style.setProperty("--color-github-warning","#d29922"),h.style.setProperty("--color-diff-addition-bg","#0d4429"),h.style.setProperty("--color-diff-addition-border","#1b7c3d"),h.style.setProperty("--color-diff-deletion-bg","#67060c"),h.style.setProperty("--color-diff-deletion-border","#da3633"),h.style.setProperty("--color-diff-neutral-bg","#21262d"),h.style.setProperty("--color-comment-bg","#1c2128"),h.style.setProperty("--color-comment-border","#373e47"),h.style.setProperty("--color-comment-text","#e6edf3"),h.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),h.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),h.style.setProperty("--color-yellow-btn-text","#fbbf24"),h.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),h.style.setProperty("--color-yellow-btn-hover-border","#d97706"),h.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),h.style.setProperty("--color-yellow-path-text","#fbbf24")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"};return{settings:r,updateSettings:g=>{u(g);try{localStorage.setItem(ug,JSON.stringify(g))}catch(h){console.warn("Failed to save appearance settings to localStorage:",h)}}}}const lt=[];for(let r=0;r<256;++r)lt.push((r+256).toString(16).slice(1));function a0(r,u=0){return(lt[r[u+0]]+lt[r[u+1]]+lt[r[u+2]]+lt[r[u+3]]+"-"+lt[r[u+4]]+lt[r[u+5]]+"-"+lt[r[u+6]]+lt[r[u+7]]+"-"+lt[r[u+8]]+lt[r[u+9]]+"-"+lt[r[u+10]]+lt[r[u+11]]+lt[r[u+12]]+lt[r[u+13]]+lt[r[u+14]]+lt[r[u+15]]).toLowerCase()}let Rs;const i0=new Uint8Array(16);function r0(){if(!Rs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Rs=crypto.getRandomValues.bind(crypto)}return Rs(i0)}const u0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sg={randomUUID:u0};function s0(r,u,f){if(sg.randomUUID&&!r)return sg.randomUUID();r=r||{};const o=r.random??r.rng?.()??r0();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,a0(o)}const zs="difit-storage-v1";class o0{generateStorageKey(u,f){const o=g=>g.replace(/[^a-zA-Z0-9-_]/g,h=>`_${h.charCodeAt(0).toString(16)}_`);return`${o(u)}-${o(f)}`}normalizeCommitish(u,f,o){if(u==="."||u==="working")return"WORKING";if(u==="staged")return"STAGED";if(u==="HEAD"&&f)return f;if(o?.has(u)){const g=o.get(u);if(g)return g}return u}getStorageKey(u,f,o,g){let h,v;f==="."||f==="working"?(h=o||u,v="WORKING"):f==="staged"?(h=o||u,v="STAGED"):(h=this.normalizeCommitish(u,o,g),v=this.normalizeCommitish(f,o,g));const T=this.generateStorageKey(h,v);return`${zs}/${T}`}getDiffContextData(u,f,o,g){try{const h=this.getStorageKey(u,f,o,g),v=localStorage.getItem(h);if(!v)return null;const T=JSON.parse(v);return T.version!==1?(console.warn(`Unknown storage version: ${T.version}`),null):T}catch(h){return console.error("Error reading diff context data:",h),null}}saveDiffContextData(u,f,o,g,h){try{const v=this.getStorageKey(u,f,g,h),T={...o,baseCommitish:u,targetCommitish:f,lastModifiedAt:new Date().toISOString()};localStorage.setItem(v,JSON.stringify(T))}catch(v){v instanceof DOMException&&v.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",v)}}getComments(u,f,o,g){return this.getDiffContextData(u,f,o,g)?.comments||[]}saveComments(u,f,o,g,h){const T=this.getDiffContextData(u,f,g,h)||{version:1,baseCommitish:u,targetCommitish:f,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};T.comments=o,this.saveDiffContextData(u,f,T,g,h)}getViewedFiles(u,f,o,g){return this.getDiffContextData(u,f,o,g)?.viewedFiles||[]}saveViewedFiles(u,f,o,g,h){const T=this.getDiffContextData(u,f,g,h)||{version:1,baseCommitish:u,targetCommitish:f,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};T.viewedFiles=o,this.saveDiffContextData(u,f,T,g,h)}cleanupOldData(u){const f=new Date;f.setDate(f.getDate()-u);const o=f.getTime(),g=[];for(let h=0;h<localStorage.length;h++){const v=localStorage.key(h);if(!(!v||!v.startsWith(zs)))try{const T=localStorage.getItem(v);if(!T)continue;const S=JSON.parse(T);new Date(S.lastModifiedAt).getTime()<o&&g.push(v)}catch{}}g.forEach(h=>localStorage.removeItem(h))}getStorageSize(){let u=0;for(let f=0;f<localStorage.length;f++){const o=localStorage.key(f);if(!o||!o.startsWith(zs))continue;const g=localStorage.getItem(o);g&&(u+=(o.length+g.length)*2)}return u}}const Za=new o0;async function og(r){try{const f=new TextEncoder().encode(r),o=await crypto.subtle.digest("SHA-256",f);return Array.from(new Uint8Array(o)).map(h=>h.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),c0(r)}}function c0(r){let u=0;for(let f=0;f<r.length;f++){const o=r.charCodeAt(f);u=(u<<5)-u+o,u=u&u}return Math.abs(u).toString(16)}function cg(r){const u=r.chunks.map(f=>{const o=f.lines.filter(g=>g.type!=="hunk"&&g.type!=="header").map(g=>`${g.type}:${g.content}`).join(`
212
+ `);return`${f.header}
213
+ ${o}`}).join(`
214
+
215
+ `);return`${r.path}
216
+ ${r.status}
217
+ ${u}`}function f0(r){const u=r.split(".").pop()?.toLowerCase();return u?{js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"}[u]:void 0}function d0(r,u,f,o){const[g,h]=L.useState([]);L.useEffect(()=>{if(!r||!u)return;const q=Za.getComments(r,u,f,o);h(q)},[r,u,f,o]);const v=L.useCallback(q=>{!r||!u||(Za.saveComments(r,u,q,f,o),h(q))},[r,u,f,o]),T=L.useCallback(q=>{const x={id:s0(),filePath:q.filePath,body:q.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),chunkHeader:q.chunkHeader,position:{side:q.side,line:q.line},codeSnapshot:q.codeSnapshot||{content:"",language:f0(q.filePath)}},A=[...g,x];return v(A),x},[g,v]),S=L.useCallback(q=>{const x=g.filter(A=>A.id!==q);v(x)},[g,v]),p=L.useCallback((q,x)=>{const A=g.map(N=>N.id===q?{...N,body:x,updatedAt:new Date().toISOString()}:N);v(A)},[g,v]),w=L.useCallback(()=>{v([])},[v]),b=L.useCallback(q=>{const x=g.find(N=>N.id===q);if(!x)return"";const A=typeof x.position.line=="number"?`L${x.position.line}`:`L${x.position.line.start}-L${x.position.line.end}`;return`${x.filePath}:${A}
218
+ ${x.body}`},[g]),k=L.useCallback(()=>g.length===0?"":g.map(q=>{const x=typeof q.position.line=="number"?`L${q.position.line}`:`L${q.position.line.start}-L${q.position.line.end}`;return`${q.filePath}:${x}
219
+ ${q.body}`}).join(`
220
+ =====
221
+ `),[g]);return{comments:g,addComment:T,removeComment:S,updateComment:p,clearAllComments:w,generatePrompt:b,generateAllCommentsPrompt:k}}var Gg=(r=>(r.DEFAULT="default",r.WORKING="working",r.STAGED="staged",r.DOT="dot",r.SPECIFIC="specific",r))(Gg||{});function g0(r){const u=L.useRef(null),f=L.useRef(null),o=L.useRef(0),g=5,h=3e3,[v,T]=L.useState({isWatchEnabled:!1,diffMode:Gg.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[S,p]=L.useState(null),w=L.useCallback(()=>{if(!u.current)try{const q=new EventSource("/api/watch");u.current=q,q.onopen=()=>{console.log("Connected to file watch service"),T(x=>({...x,connectionStatus:"connected"})),o.current=0,p(null)},q.onmessage=x=>{try{const A=JSON.parse(x.data);switch(A.type){case"connected":T(N=>({...N,isWatchEnabled:!0,diffMode:A.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",A.changeType),T(N=>({...N,shouldReload:!0,lastChangeTime:new Date,lastChangeType:A.changeType}));break;case"error":console.error("File watch error:",A.message),p(A.message||"File watch error occurred");break}}catch(A){console.error("Error parsing watch event:",A)}},q.onerror=()=>{console.log("File watch connection lost"),T(x=>({...x,connectionStatus:"disconnected"})),u.current&&(u.current.close(),u.current=null),o.current<g?(T(x=>({...x,connectionStatus:"reconnecting"})),o.current+=1,f.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${o.current}/${g})...`),w()},h)):(console.error("Max reconnection attempts reached"),p("Lost connection to file watch service"))}}catch(q){console.error("Failed to connect to file watch service:",q),p("Failed to connect to file watch service")}},[g,h]),b=L.useCallback(async()=>{if(!v.isReloading){T(q=>({...q,isReloading:!0}));try{r&&await r(),T(q=>({...q,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(q){console.error("Reload failed:",q),p("Failed to reload diff data"),T(x=>({...x,isReloading:!1}))}}},[r,v.isReloading]),k=()=>{u.current&&(u.current.close(),u.current=null),f.current&&(clearTimeout(f.current),f.current=null)};return L.useEffect(()=>(w(),k),[w]),L.useEffect(()=>k,[]),{shouldReload:v.shouldReload,isConnected:v.connectionStatus==="connected",error:S,reload:b,watchState:v}}const Bs={SCROLL_CONTAINER:"main.overflow-y-auto"};function Dl(r,u){const f=`file-${r.fileIndex}-chunk-${r.chunkIndex}-line-${r.lineIndex}`;return u==="side-by-side"?`${f}-${r.side}`:f}function Yg(r,u){return`${r}:${u}`}function h0(r,u){const f=u[r.fileIndex]?.chunks[r.chunkIndex]?.lines[r.lineIndex];return f&&(f.type==="add"||f.type==="delete"||f.type==="normal")?f.type:null}function wt(r,u){const f=h0(r,u);return f?f==="normal"?!0:f==="delete"?r.side==="left":f==="add"?r.side==="right":!1:!1}function Zg(r,u){return wt(r,u)?r:{...r,side:r.side==="left"?"right":"left"}}const fg={VIEWPORT_OFFSET_RATIO:1/3};function p0(r,u,f,o){return{line:g=>{const h=r[g.fileIndex];return!h||o?.has(h.path)?!1:f==="inline"||wt(g,r)},chunk:g=>{const h=r[g.fileIndex];if(!h||o?.has(h.path))return!1;const v=h.chunks[g.chunkIndex]?.lines[g.lineIndex];if(!v||v.type==="normal")return!1;if(g.lineIndex===0)return!0;const T=h.chunks[g.chunkIndex]?.lines[g.lineIndex-1];return!T||T.type==="normal"},comment:g=>{const h=r[g.fileIndex];if(!h||o?.has(h.path))return!1;const v=h.chunks[g.chunkIndex]?.lines[g.lineIndex];if(!v||v.type==="delete")return!1;const T=v.newLineNumber;if(!T)return!1;const S=Yg(h.path,T);return u.has(S)},file:g=>g.chunkIndex===0&&g.lineIndex===0}}function b0(){return r=>{const u=document.getElementById(r);if(!u)return;const f=document.querySelector(Bs.SCROLL_CONTAINER);if(!f)throw new Error(`Scrollable container (${Bs.SCROLL_CONTAINER}) not found`);const o=u.getBoundingClientRect(),g=f.getBoundingClientRect(),h=f.clientHeight,v=f.scrollTop,T=Math.max(g.top,0),S=Math.min(g.bottom,window.innerHeight);if(!(o.top>=T&&o.bottom<=S)){const A=y0(u,f)-h*fg.VIEWPORT_OFFSET_RATIO;f.scrollTop=Math.max(0,A);return}const w=o.bottom>Math.min(g.bottom,window.innerHeight),k=u.offsetTop-f.offsetTop-h*fg.VIEWPORT_OFFSET_RATIO,q=k>v;w&&q&&(f.scrollTop=Math.max(0,k))}}function y0(r,u){let f=r,o=0;for(;f&&f!==u&&f.offsetParent;)o+=f.offsetTop,f=f.offsetParent;return f&&f!==u&&(o+=f.offsetTop),o}function m0(r){return r||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function v0(r,u,f){return f&&r.fileIndex===u.fileIndex&&r.chunkIndex===u.chunkIndex&&r.lineIndex===u.lineIndex}function x0(r,u,f){let{fileIndex:o,chunkIndex:g,lineIndex:h}=r;const v=f.length;let T=0;if(u==="next")for(h++;T<v;){if(f[o]?.chunks[g]?.lines[h])return{...r,fileIndex:o,chunkIndex:g,lineIndex:h};g++,h=0,f[o]?.chunks[g]||(o++,g=0,h=0,o>=v&&(o=0,T++))}else for(h--;T<v;){if(h<0)if(g--,g<0){o--,o<0&&(o=v-1,T++);const S=f[o];if(S&&S.chunks.length>0){g=S.chunks.length-1;const p=S.chunks[g];h=p&&p.lines.length>0?p.lines.length-1:-1}else g=-1,h=-1}else{const S=f[o]?.chunks[g];h=S&&S.lines.length>0?S.lines.length-1:-1}if(h>=0&&f[o]?.chunks[g]?.lines[h])return{...r,fileIndex:o,chunkIndex:g,lineIndex:h};h<0||h--}return null}function S0(r,u,f,o,g){let h=r,v=!1;for(;h;){const T=x0(h,u,o);if(!T||(h=T,v0(h,r,v)))break;if(v=!0,f(h,o)){const S=Zg(h,o);return{position:S,scrollTarget:Dl(S,g)}}}return{position:null,scrollTarget:null}}function E0({files:r,comments:u,viewMode:f="inline",reviewedFiles:o,onToggleReviewed:g,onCreateComment:h,onCopyAllComments:v,onDeleteAllComments:T,onShowCommentsList:S,onRefresh:p}){const[w,b]=L.useState(null),[k,q]=L.useState(!1),x=L.useMemo(()=>b0(),[]),A=L.useMemo(()=>{const ie=new Map;return u.forEach(Q=>{const me=Array.isArray(Q.line)?Q.line[0]:Q.line,pe=Yg(Q.file,me);ie.has(pe)||ie.set(pe,[]),ie.get(pe)?.push(Q)}),ie},[u]),N=L.useMemo(()=>p0(r,A,f,o),[r,A,f,o]),j=L.useCallback((ie,Q)=>{if(r.length===0)return{position:null,scrollTarget:null};const me=m0(w);return S0(me,ie,Q,r,f)},[w,r,f]),_=L.useCallback(ie=>Q=>{const me=j(Q,ie);me.position&&(b(me.position),me.scrollTarget&&x(me.scrollTarget))},[j,x]),H=L.useMemo(()=>_(N.line),[_,N.line]),z=L.useMemo(()=>_(N.chunk),[_,N.chunk]),X=L.useMemo(()=>_(N.file),[_,N.file]),P=L.useMemo(()=>_(N.comment),[_,N.comment]),te=L.useCallback(ie=>{if(!w||f!=="side-by-side")return;let Q={...w,side:ie};const me=r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex];if(me){if(ie==="left"&&me.type==="add"&&w.lineIndex>0){if(r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex-1]?.type==="delete"){Q={...Q,lineIndex:w.lineIndex-1},b(Q),x(Dl(Q,f));return}}else if(ie==="right"&&me.type==="delete"&&r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex+1]?.type==="add"){Q={...Q,lineIndex:w.lineIndex+1},b(Q),x(Dl(Q,f));return}}if(!wt(Q,r)){const pe=r[w.fileIndex];if(!pe)return;const J=pe.chunks[w.chunkIndex];if(J){for(let y=w.lineIndex+1;y<J.lines.length;y++){const G={...Q,lineIndex:y};if(wt(G,r)){Q=G;break}}if(!wt(Q,r))for(let y=w.lineIndex-1;y>=0;y--){const G={...Q,lineIndex:y};if(wt(G,r)){Q=G;break}}}if(!wt(Q,r)){for(let y=w.chunkIndex+1;y<pe.chunks.length;y++){const G=pe.chunks[y];if(G){for(let K=0;K<G.lines.length;K++){const ee={...Q,chunkIndex:y,lineIndex:K};if(wt(ee,r)){Q=ee;break}}if(wt(Q,r))break}}if(!wt(Q,r))for(let y=w.chunkIndex-1;y>=0;y--){const G=pe.chunks[y];if(G){for(let K=G.lines.length-1;K>=0;K--){const ee={...Q,chunkIndex:y,lineIndex:K};if(wt(ee,r)){Q=ee;break}}if(wt(Q,r))break}}}}b(Q),x(Dl(Q,f))},[w,f,x,r]),se=L.useCallback(()=>{const ie=document.querySelector(Bs.SCROLL_CONTAINER);if(!ie)return;const Q=ie.getBoundingClientRect(),me=Q.top+Q.height/2;let pe=1/0,J=null;r.forEach((y,G)=>{y.chunks.forEach((K,ee)=>{K.lines.forEach((m,U)=>{const $=f==="side-by-side"?["left","right"]:["right"];for(const I of $){const ne={fileIndex:G,chunkIndex:ee,lineIndex:U,side:I};if(f==="side-by-side"&&!wt(ne,r))continue;const ge=Dl(ne,f),re=document.getElementById(ge);if(re){const fe=re.getBoundingClientRect(),le=fe.top+fe.height/2,Ae=Math.abs(le-me);fe.top<Q.bottom&&fe.bottom>Q.top&&Ae<pe&&(pe=Ae,J=ne)}}})})}),J&&b(J)},[r,f,b]),be=L.useCallback(ie=>{if(!ie){b(null);return}const Q=Zg(ie,r);b(Q),x(Dl(Q,f))},[r,f,x]),ce={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return ze("j, down",()=>H("next"),ce,[H]),ze("k, up",()=>H("prev"),ce,[H]),ze("n",()=>z("next"),ce,[z]),ze("p",()=>z("prev"),ce,[z]),ze("shift+n",()=>P("next"),ce,[P]),ze("shift+p",()=>P("prev"),ce,[P]),ze("]",()=>X("next"),{...ce,useKey:!0},[X]),ze("[",()=>X("prev"),{...ce,useKey:!0},[X]),ze("{",()=>{r.length>0&&(b({fileIndex:0,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"}),x(Dl({fileIndex:0,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"},f)))},{...ce,useKey:!0},[r,f,x]),ze("}",()=>{if(r.length>0){const ie=r.length-1,Q=r[ie];Q&&Q.chunks.length>0&&(b({fileIndex:ie,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"}),x(Dl({fileIndex:ie,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"},f)))}},{...ce,useKey:!0},[r,f,x]),ze("h, left",()=>te("left"),{...ce,enabled:f==="side-by-side"},[te,f]),ze("l, right",()=>te("right"),{...ce,enabled:f==="side-by-side"},[te,f]),ze("v",()=>{if(w){const ie=r[w.fileIndex];ie&&g(ie.path)}},ce,[w,r,g]),ze("shift+r",()=>{p&&p()},ce,[p]),ze("c",()=>{if(w&&h){const ie=r[w.fileIndex]?.chunks[w.chunkIndex]?.lines[w.lineIndex];ie&&ie.type!=="delete"&&h()}},ce,[w,r,h]),ze("?",()=>q(!k),{...ce,useKey:!0},[k]),ze(".",()=>se(),{...ce,useKey:!0},[se]),ze("shift+c",()=>{v&&v()},{...ce,scopes:["navigation","comments-list"]},[v]),ze("shift+d",()=>{T&&T()},{...ce,scopes:["navigation","comments-list"]},[T]),ze("shift+l",()=>{S&&S()},ce,[S]),{cursor:w,isHelpOpen:k,setIsHelpOpen:q,setCursorPosition:be}}function N0(r){const u=["package-lock.json","yarn.lock","pnpm-lock.yaml","Cargo.lock","Gemfile.lock","poetry.lock","composer.lock","Pipfile.lock","go.sum","pubspec.lock","flake.lock"],f=r.split("/").pop()||"";return u.includes(f)}function w0(r,u,f,o,g){const[h,v]=L.useState([]),[T,S]=L.useState(new Map);L.useEffect(()=>{if(!r||!u)return;const N=Za.getViewedFiles(r,u,f,o);(async()=>{if(g&&g.length>0){const _=[],H=new Set(N.map(z=>z.filePath));for(const z of g)if(N0(z.path)&&!H.has(z.path))try{const X=cg(z),P=await og(X),te={filePath:z.path,viewedAt:new Date().toISOString(),diffContentHash:P};_.push(te)}catch(X){console.error("Failed to generate hash for lock file:",X)}if(_.length>0){const z=[...N,..._];Za.saveViewedFiles(r,u,z,f,o),v(z);return}}v(N)})()},[r,u,f,o]);const p=L.useCallback(N=>{!r||!u||(Za.saveViewedFiles(r,u,N,f,o),v(N))},[r,u,f,o]),w=L.useMemo(()=>new Set(h.map(N=>N.filePath)),[h]),b=L.useCallback(N=>h.find(j=>j.filePath===N),[h]),k=L.useCallback(async N=>{const j=T.get(N.path);if(j)return j;const _=cg(N),H=await og(_);return S(z=>new Map(z).set(N.path,H)),H},[T]),q=L.useCallback(async(N,j)=>{const _=b(N);if(!_)return!1;const H=await k(j);return _.diffContentHash!==H},[b,k]),x=L.useCallback(async(N,j)=>{if(b(N)){const H=h.filter(z=>z.filePath!==N);p(H)}else{const H=await k(j),z={filePath:N,viewedAt:new Date().toISOString(),diffContentHash:H},X=[...h,z];p(X)}},[h,b,k,p]),A=L.useCallback(()=>{p([]),S(new Map)},[p]);return{viewedFiles:w,toggleFileViewed:x,isFileContentChanged:q,getViewedFileRecord:b,clearViewedFiles:A}}const Ms=new Map;let A0=0;function Ls(r){return Ms.has(r)||Ms.set(r,`file-${++A0}`),Ms.get(r)??""}function T0(r,u,f){for(let o=0;o<r.chunks.length;o++){const g=r.chunks[o];if(g)for(let h=0;h<g.lines.length;h++){const v=g.lines[h];if(!v)continue;if((v.newLineNumber||v.oldLineNumber)===f)return{fileIndex:u,chunkIndex:o,lineIndex:h,side:v.newLineNumber?"right":"left"}}}return null}function _0(r,u){const f=u.findIndex(h=>h.path===r.file);if(f===-1)return null;const o=u[f];if(!o)return null;const g=Array.isArray(r.line)?r.line[1]:r.line;return T0(o,f,g)}function j0(){const[r,u]=L.useState(null),[f,o]=L.useState("side-by-side"),[g,h]=L.useState(!0),[v,T]=L.useState(!0),[S,p]=L.useState(null),[w,b]=L.useState(!1),[k,q]=L.useState(320),[x,A]=L.useState(!1),[N,j]=L.useState(!0),[_,H]=L.useState(!1),[z,X]=L.useState(!1),[P,te]=L.useState(!1),[se,be]=L.useState(!1),{settings:ce,updateSettings:ie}=n0(),{comments:Q,addComment:me,removeComment:pe,updateComment:J,clearAllComments:y,generatePrompt:G,generateAllCommentsPrompt:K}=d0(r?.baseCommitish,r?.targetCommitish,r?.commit,void 0),{viewedFiles:ee,toggleFileViewed:m}=w0(r?.baseCommitish,r?.targetCommitish,r?.commit,void 0,r?.files),U=async W=>{if(r){const Te=r.files.find(Ne=>Ne.path===W);Te&&(await m(W,Te),ee.has(W)||setTimeout(()=>{const Ne=document.getElementById(Ls(W));Ne&&Ne.scrollIntoView({behavior:"instant",block:"start"})},100))}},[$,I]=L.useState(null),{shouldReload:ne,reload:ge,watchState:re}=g0(async()=>{await zl()}),{cursor:fe,isHelpOpen:le,setIsHelpOpen:Ae,setCursorPosition:qe}=E0({files:r?.files||[],comments:Q.map(W=>({id:W.id,file:W.filePath,line:typeof W.position.line=="number"?W.position.line:[W.position.line.start,W.position.line.end],body:W.body,timestamp:W.createdAt,codeContent:W.codeSnapshot?.content})),viewMode:f,reviewedFiles:ee,onToggleReviewed:U,onCreateComment:()=>{fe&&I({fileIndex:fe.fileIndex,chunkIndex:fe.chunkIndex,lineIndex:fe.lineIndex})},onCopyAllComments:()=>{Q.length>0&&Xa()},onDeleteAllComments:()=>{Q.length>0&&confirm("Delete all comments?")&&y()},onShowCommentsList:()=>{be(!0)},onRefresh:()=>{ge()}}),tn=W=>{W.preventDefault(),H(!0);const Te=W.clientX,Ne=k,Bt=Ml=>{const gr=Math.max(200,Math.min(600,Ne+(Ml.clientX-Te)));q(gr)},Xt=()=>{H(!1),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",Xt)};document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",Xt)},zl=L.useCallback(async()=>{try{const W=await fetch(`/api/diff?ignoreWhitespace=${g}`);if(!W.ok)throw new Error("Failed to fetch diff data");const Te=await W.json();u(Te),Te.mode&&o(Te.mode)}catch(W){p(W instanceof Error?W.message:"Unknown error")}finally{T(!1)}},[g]);L.useEffect(()=>{zl()},[zl]);const ln=L.useRef(!1);L.useEffect(()=>{r?.clearComments&&!ln.current&&(ln.current=!0,y(),console.log("✅ All existing comments cleared as requested via --clean flag"))},[r?.clearComments,y]),L.useEffect(()=>{r&&(ee.size<r.files.length?te(!1):ee.size===r.files.length&&!P&&(X(!0),te(!0),setTimeout(()=>{X(!1)},1e3)))},[ee.size,r,P]),L.useEffect(()=>{if(Q.length>0){const Te=JSON.stringify({comments:Q});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:Te}).catch(Ne=>{console.error("Failed to sync comments:",Ne)})}const W=()=>{if(Q.length>0){const Te=JSON.stringify({comments:Q});navigator.sendBeacon("/api/comments",Te)}};return window.addEventListener("beforeunload",W),()=>{window.removeEventListener("beforeunload",W)}},[Q]),L.useEffect(()=>{const W=new EventSource("/api/heartbeat");return W.onopen=()=>{console.log("Connected to server heartbeat")},W.onerror=()=>{console.log("Server connection lost"),W.close()},()=>{W.close()}},[]);const Zn=(W,Te,Ne,Bt,Xt,Ml)=>(me({filePath:W,body:Ne,side:Ml||"new",line:typeof Te=="number"?Te:{start:Te[0],end:Te[1]},chunkHeader:Xt||"",codeSnapshot:Bt?{content:Bt,language:void 0}:void 0}),Promise.resolve()),Xa=async()=>{try{const W=K();await navigator.clipboard.writeText(W),b(!0),setTimeout(()=>b(!1),2e3)}catch(W){console.error("Failed to copy all comments prompt:",W)}},fr=W=>{if(!r)return;const Te=_0(W,r.files);Te&&qe(Te)},At=W=>{qe(null),W.target.closest('[data-comment-button="true"]')||dr(W)},dr=W=>{document.querySelectorAll('form[data-empty="true"]').forEach(Ne=>{Ne.contains(W.target)||Ne.querySelector('button[type="button"]')?.click()})};return v?s.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:s.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):S?s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:S})]}):r?s.jsx(jy,{children:s.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:At,children:[s.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[s.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?`${k}px`:"auto",minWidth:N?"200px":"auto",maxWidth:N?"600px":"auto"},children:[s.jsx("h1",{children:s.jsx(Jm,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>j(!N),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:N?"Collapse file tree":"Expand file tree","aria-expanded":N,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:N?s.jsx(ry,{size:18}):s.jsx(sy,{size:18})}),s.jsx("button",{onClick:()=>A(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:s.jsx(jg,{size:18})})]})]}),s.jsx("div",{className:`border-r border-github-border ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),s.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[s.jsxs("button",{onClick:()=>o("side-by-side"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${f==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(Yb,{size:14}),"Side by Side"]}),s.jsxs("button",{onClick:()=>o("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${f==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[s.jsx(Ub,{size:14}),"Inline"]})]}),s.jsx(Cg,{checked:g,onChange:h,label:"Ignore Whitespace",title:g?"Show whitespace changes":"Ignore whitespace changes"}),s.jsx(Wm,{shouldReload:ne,isReloading:re.isReloading,onReload:ge,changeType:re.lastChangeType})]}),s.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[Q.length>0&&s.jsx(vy,{commentsCount:Q.length,isCopiedAll:w,onCopyAll:Xa,onDeleteAll:y,onViewAll:()=>be(!0)}),s.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[s.jsxs("div",{className:"text-xs relative",children:[ee.size===r.files.length?"All diffs difit-ed!":`${ee.size} / ${r.files.length} files viewed`,s.jsx(l0,{isActive:z})]}),s.jsx("div",{className:"relative h-2 bg-github-bg-tertiary rounded-full overflow-hidden",style:{width:"90px",border:"1px solid var(--color-github-border)"},children:s.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(r.files.length-ee.size)/r.files.length*100}%`,backgroundColor:(()=>{const W=(r.files.length-ee.size)/r.files.length*100;return W>50?"var(--color-github-accent)":W>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),s.jsxs("span",{children:["Reviewing:"," ",s.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:r.commit.includes("...")?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-github-text-secondary font-medium",children:[r.commit.split("...")[0],"..."]}),s.jsx("span",{className:"font-medium",children:r.commit.split("...")[1]})]}):r.commit})]}),s.jsxs("span",{children:[r.files.length," file",r.files.length!==1?"s":""," changed"]})]})]})]}),s.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[s.jsx("div",{className:`relative overflow-hidden ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?`${k}px`:"0px"},children:s.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${k}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsx($m,{files:r.files,onScrollToFile:W=>{const Te=document.getElementById(Ls(W));Te&&Te.scrollIntoView({behavior:"smooth",block:"start"})},comments:Q.map(W=>({id:W.id,file:W.filePath,line:typeof W.position.line=="number"?W.position.line:[W.position.line.start,W.position.line.end],body:W.body,timestamp:W.createdAt,codeContent:W.codeSnapshot?.content})),reviewedFiles:ee,onToggleReviewed:U,selectedFileIndex:fe?.fileIndex??null})}),s.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[s.jsxs("button",{onClick:()=>Ae(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[s.jsx(ty,{size:16}),s.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),s.jsxs("a",{href:"https://github.com/yoshiko-pg/difit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"View on GitHub",children:[s.jsx("span",{className:"text-sm",children:"Star on GitHub"}),s.jsx(Km,{style:{height:"18px",width:"18px"}})]})]})]})}),s.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${_?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?"4px":"0px"},onMouseDown:tn,title:"Drag to resize file list"}),s.jsx("main",{className:"flex-1 overflow-y-auto",children:r.files.map((W,Te)=>s.jsx("div",{id:Ls(W.path),className:"mb-6",children:s.jsx(Fm,{file:W,comments:Q.filter(Ne=>Ne.filePath===W.path).map(Ne=>({id:Ne.id,file:Ne.filePath,line:typeof Ne.position.line=="number"?Ne.position.line:[Ne.position.line.start,Ne.position.line.end],body:Ne.body,timestamp:Ne.createdAt,codeContent:Ne.codeSnapshot?.content})),diffMode:f,reviewedFiles:ee,onToggleReviewed:U,onAddComment:Zn,onGeneratePrompt:Ne=>G(Ne.id),onRemoveComment:pe,onUpdateComment:J,syntaxTheme:ce.syntaxTheme,baseCommitish:r.baseCommitish,targetCommitish:r.targetCommitish,cursor:fe?.fileIndex===Te?fe:null,fileIndex:Te,onLineClick:(Ne,Bt,Xt,Ml)=>{qe({fileIndex:Ne,chunkIndex:Bt,lineIndex:Xt,side:Ml})},commentTrigger:$?.fileIndex===Te?$:null,onCommentTriggerHandled:()=>I(null)})},W.path))})]}),s.jsx(t0,{isOpen:x,onClose:()=>A(!1),settings:ce,onSettingsChange:ie}),s.jsx(Im,{isOpen:le,onClose:()=>Ae(!1)}),s.jsx(xy,{isOpen:se,onClose:()=>be(!1),onNavigate:fr,comments:Q.map(W=>({id:W.id,file:W.filePath,line:typeof W.position.line=="number"?W.position.line:[W.position.line.start,W.position.line.end],body:W.body,timestamp:W.createdAt,codeContent:W.codeSnapshot?.content})),onRemoveComment:pe,onGeneratePrompt:W=>G(W.id),onUpdateComment:J})]})}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[s.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),s.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const Vg=document.getElementById("root");if(!Vg)throw new Error("Root element not found");yb.createRoot(Vg).render(s.jsx(en.StrictMode,{children:s.jsx(jb,{initiallyActiveScopes:["navigation"],children:s.jsx(j0,{})})}));export{dg as g};